| 1 |
name: 'CodeQL' |
| 2 |
on: |
| 3 |
push: |
| 4 |
branches: |
| 5 |
- 'master' |
| 6 |
pull_request: |
| 7 |
branches: |
| 8 |
- 'master' |
| 9 |
merge_group: |
| 10 |
branches: |
| 11 |
- 'master' |
| 12 |
schedule: |
| 13 |
- cron: '0 0 * * 1' |
| 14 |
permissions: |
| 15 |
contents: 'read' |
| 16 |
jobs: |
| 17 |
analyze: |
| 18 |
name: 'Analyze' |
| 19 |
runs-on: 'ubuntu-latest' |
| 20 |
permissions: |
| 21 |
actions: 'read' |
| 22 |
contents: 'read' |
| 23 |
security-events: 'write' |
| 24 |
strategy: |
| 25 |
fail-fast: false |
| 26 |
matrix: |
| 27 |
language: |
| 28 |
- 'go' |
| 29 |
steps: |
| 30 |
- name: 'Harden Runner' |
| 31 |
uses: step-security/harden-runner@58077d3c7e43986b6b15fba718e8ea69e387dfcc # v2.15.1 |
| 32 |
with: |
| 33 |
egress-policy: 'audit' |
| 34 |
- name: 'Checkout' |
| 35 |
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 |
| 36 |
- name: 'Initialize CodeQL' |
| 37 |
uses: github/codeql-action/init@0d579ffd059c29b07949a3cce3983f0780820c98 # v4.32.6 |
| 38 |
with: |
| 39 |
languages: ${{ matrix.language }} |
| 40 |
- name: 'Build' |
| 41 |
uses: github/codeql-action/autobuild@0d579ffd059c29b07949a3cce3983f0780820c98 # v4.32.6 |
| 42 |
- name: 'Perform CodeQL Analysis' |
| 43 |
uses: github/codeql-action/analyze@0d579ffd059c29b07949a3cce3983f0780820c98 # v4.32.6 |
| 44 |
with: |
| 45 |
category: '/language:${{matrix.language}}' |