Skip to content

Check: CodeQL

Check: CodeQL #126

name: 'Check: CodeQL'
on:
push:
branches:
- main
workflow_call: {}
schedule:
- cron: '31 7 * * 3'
permissions:
contents: read
jobs:
analyze:
name: 'Check: CodeQL (${{ matrix.language }})'
runs-on: ubuntu-latest
permissions:
actions: read
checks: write
contents: read
security-events: write
strategy:
fail-fast: false
matrix:
language:
- TypeScript
steps:
- name: 'Setup: Harden Runner'
uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1
with:
disable-sudo: true
egress-policy: block
allowed-endpoints: >
api.github.com:443
bun.sh:443
github.com:443
objects.githubusercontent.com:443
registry.npmjs.org:443
uploads.github.com:443
- name: 'Setup: Checkout'
id: checkout
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
with:
persist-credentials: false
- name: 'Setup: Node'
uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6 # v4.0.4
with:
node-version-file: .node-version
- name: 'Setup: Bun'
uses: oven-sh/setup-bun@4bc047ad259df6fc24a6c9b0f9a0cb08cf17fbe5 # v2.0.1
with:
bun-version: latest
- name: 'Setup: PNPM'
uses: pnpm/action-setup@a3252b78c470c02df07e9d59298aecedc3ccdd6d # v3.0.0
with:
version: '8.15.3'
run_install: |
- args: [--frozen-lockfile, --strict-peer-dependencies]
- name: 'CodeQL: Initialize'
id: initialize
uses: github/codeql-action/init@e2b3eafc8d227b0241d48be5f425d47c2d750a13 # v3.26.10
with:
languages: ${{ matrix.language }}
source-root: src
- name: 'CodeQL: Autobuild'
id: autobuild
uses: github/codeql-action/autobuild@e2b3eafc8d227b0241d48be5f425d47c2d750a13 # v3.26.10
- name: 'CodeQL: Analysis'
id: analyze
uses: github/codeql-action/analyze@e2b3eafc8d227b0241d48be5f425d47c2d750a13 # v3.26.10