2023-11-09 08:50:19 +00:00
|
|
|
name: CodeQL
|
2021-07-22 05:07:51 +00:00
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [master]
|
|
|
|
pull_request:
|
|
|
|
# The branches below must be a subset of the branches above
|
|
|
|
branches: [master]
|
|
|
|
schedule:
|
|
|
|
- cron: '0 13 * * 6'
|
|
|
|
|
2023-11-09 08:50:19 +00:00
|
|
|
permissions: {}
|
|
|
|
|
2021-07-22 05:07:51 +00:00
|
|
|
jobs:
|
|
|
|
analyze:
|
|
|
|
name: Analyze
|
|
|
|
runs-on: ubuntu-latest
|
2023-11-09 08:50:19 +00:00
|
|
|
permissions:
|
|
|
|
security-events: write
|
|
|
|
actions: read
|
2021-07-22 05:07:51 +00:00
|
|
|
|
|
|
|
steps:
|
2023-12-07 14:22:11 +00:00
|
|
|
- uses: step-security/harden-runner@eb238b55efaa70779f274895e782ed17c84f2895 # v2.6.1
|
2023-11-09 08:50:19 +00:00
|
|
|
with:
|
|
|
|
disable-sudo: true
|
2023-11-09 10:58:41 +00:00
|
|
|
egress-policy: block
|
|
|
|
allowed-endpoints: >
|
|
|
|
api.github.com:443
|
|
|
|
github.com:443
|
2023-11-09 08:50:19 +00:00
|
|
|
|
2021-07-22 05:07:51 +00:00
|
|
|
- name: Checkout repository
|
2023-11-09 08:50:19 +00:00
|
|
|
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
|
|
|
|
with:
|
|
|
|
persist-credentials: false
|
2021-07-22 05:07:51 +00:00
|
|
|
|
|
|
|
- name: Initialize CodeQL
|
2023-12-22 16:51:15 +00:00
|
|
|
uses: github/codeql-action/init@1500a131381b66de0c52ac28abb13cd79f4b7ecc # v2.22.12
|
2021-07-22 05:07:51 +00:00
|
|
|
with:
|
2023-11-09 08:50:19 +00:00
|
|
|
languages: javascript-typescript
|
|
|
|
config-file: .github/codeql/codeql-config.yml
|
2021-07-22 05:07:51 +00:00
|
|
|
|
|
|
|
- name: Perform CodeQL Analysis
|
2023-12-22 16:51:15 +00:00
|
|
|
uses: github/codeql-action/analyze@1500a131381b66de0c52ac28abb13cd79f4b7ecc # v2.22.12
|
2023-11-09 08:50:19 +00:00
|
|
|
|