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:
|
2024-02-02 21:23:49 +00:00
|
|
|
- uses: step-security/harden-runner@63c24ba6bd7ba022e95695ff85de572c04a18142 # v2.7.0
|
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
|
2024-02-02 19:55:32 +00:00
|
|
|
uses: github/codeql-action/init@e8893c57a1f3a2b659b6b55564fdfdbbd2982911 # v3.24.0
|
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
|
2024-02-02 19:55:32 +00:00
|
|
|
uses: github/codeql-action/analyze@e8893c57a1f3a2b659b6b55564fdfdbbd2982911 # v3.24.0
|
2023-11-09 08:50:19 +00:00
|
|
|
|