| 1 |
name: CodeQL |
| 2 |
|
| 3 |
on: |
| 4 |
push: |
| 5 |
branches: [ "main" ] |
| 6 |
pull_request: |
| 7 |
schedule: |
| 8 |
- cron: '00 5 * * 1' |
| 9 |
|
| 10 |
permissions: {} |
| 11 |
|
| 12 |
jobs: |
| 13 |
analyze: |
| 14 |
name: Analyze |
| 15 |
runs-on: ubuntu-latest |
| 16 |
permissions: |
| 17 |
actions: read |
| 18 |
contents: read |
| 19 |
security-events: write |
| 20 |
|
| 21 |
strategy: |
| 22 |
fail-fast: false |
| 23 |
matrix: |
| 24 |
language: [ 'go', 'actions' ] |
| 25 |
|
| 26 |
steps: |
| 27 |
- name: Checkout code |
| 28 |
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 |
| 29 |
|
| 30 |
|
| 31 |
- name: Initialize CodeQL |
| 32 |
uses: github/codeql-action/init@0499de31b99561a6d14a36a5f662c2a54f91beee |
| 33 |
with: |
| 34 |
languages: ${{ matrix.language }} |
| 35 |
|
| 36 |
|
| 37 |
queries: security-and-quality |
| 38 |
|
| 39 |
- name: Manual Build |
| 40 |
run: go build ./... |
| 41 |
|
| 42 |
- name: Perform CodeQL Analysis |
| 43 |
uses: github/codeql-action/analyze@0499de31b99561a6d14a36a5f662c2a54f91beee |
| 44 |
with: |
| 45 |
category: "/language:${{matrix.language}}" |