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-11-09 08:50:19 +00:00
|
|
|
- uses: step-security/harden-runner@1b05615854632b887b69ae1be8cbefe72d3ae423 # v2.6.0
|
|
|
|
with:
|
|
|
|
disable-sudo: true
|
|
|
|
egress-policy: audit
|
|
|
|
|
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-11-09 08:50:19 +00:00
|
|
|
uses: github/codeql-action/init@74483a38d39275f33fcff5f35b679b5ca4a26a99 # v2.22.5
|
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-11-09 08:50:19 +00:00
|
|
|
uses: github/codeql-action/analyze@74483a38d39275f33fcff5f35b679b5ca4a26a99 # v2.22.5
|
|
|
|
|