2022-06-13 09:40:10 +00:00
|
|
|
name: CI - Run CodeQL Analysis
|
2020-06-19 20:14:20 +00:00
|
|
|
on:
|
|
|
|
push:
|
2021-05-06 04:33:34 +00:00
|
|
|
branches: [main]
|
2021-12-08 13:42:07 +00:00
|
|
|
paths-ignore:
|
|
|
|
- 'docs/**'
|
2020-06-19 20:14:20 +00:00
|
|
|
pull_request:
|
2021-05-06 04:33:34 +00:00
|
|
|
branches: [main]
|
2021-12-08 13:42:07 +00:00
|
|
|
paths-ignore:
|
|
|
|
- 'docs/**'
|
2020-06-19 20:14:20 +00:00
|
|
|
|
2022-05-08 09:47:44 +00:00
|
|
|
permissions:
|
|
|
|
contents: read
|
|
|
|
|
2020-06-19 20:14:20 +00:00
|
|
|
jobs:
|
2021-05-06 04:33:34 +00:00
|
|
|
analyse:
|
2022-05-08 09:47:44 +00:00
|
|
|
permissions:
|
|
|
|
# for github/codeql-action/init to get workflow details
|
|
|
|
actions: read
|
|
|
|
# for actions/checkout to fetch code
|
|
|
|
contents: read
|
|
|
|
# for github/codeql-action/analyze to upload SARIF results
|
|
|
|
security-events: write
|
2021-05-06 04:33:34 +00:00
|
|
|
name: Analyse
|
2021-11-02 11:49:50 +00:00
|
|
|
runs-on: ubuntu-20.04
|
2021-12-03 16:24:00 +00:00
|
|
|
if: ${{ github.actor != 'renovate[bot]' && github.actor != 'camperbot' }}
|
2021-05-06 04:33:34 +00:00
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
2021-10-06 15:32:21 +00:00
|
|
|
language: ['javascript']
|
2020-06-19 20:14:20 +00:00
|
|
|
steps:
|
2021-05-06 04:33:34 +00:00
|
|
|
- name: Checkout repository
|
2022-10-15 12:55:48 +00:00
|
|
|
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # tag=v3
|
2021-05-06 04:33:34 +00:00
|
|
|
- name: Setup CodeQL
|
2022-12-03 02:32:34 +00:00
|
|
|
uses: github/codeql-action/init@b2a92eb56d8cb930006a1c6ed86b0782dd8a4297 # v2
|
2020-08-08 18:09:03 +00:00
|
|
|
with:
|
2021-05-06 04:33:34 +00:00
|
|
|
languages: ${{ matrix.language }}
|
|
|
|
- name: Perform Analysis
|
2022-12-03 02:32:34 +00:00
|
|
|
uses: github/codeql-action/analyze@b2a92eb56d8cb930006a1c6ed86b0782dd8a4297 # v2
|