| 1 |
name: "CodeQL Analysis" |
| 2 |
|
| 3 |
on: |
| 4 |
workflow_dispatch: |
| 5 |
schedule: |
| 6 |
# ┌───────────── minute (0 - 59) |
| 7 |
# │ ┌───────────── hour (0 - 23) |
| 8 |
# │ │ ┌───────────── day of the month (1 - 31) |
| 9 |
# │ │ │ ┌───────────── month (1 - 12 or JAN-DEC) |
| 10 |
# │ │ │ │ ┌───────────── day of the week (0 - 6 or SUN-SAT) |
| 11 |
# │ │ │ │ │ |
| 12 |
# │ │ │ │ │ |
| 13 |
# │ │ │ │ │ |
| 14 |
# * * * * * |
| 15 |
- cron: '30 1 * * *' |
| 16 |
push: |
| 17 |
branches: [ main ] |
| 18 |
pull_request: |
| 19 |
|
| 20 |
# Declare default permissions as read only. |
| 21 |
permissions: read-all |
| 22 |
|
| 23 |
jobs: |
| 24 |
CodeQL-Build: |
| 25 |
permissions: |
| 26 |
security-events: write |
| 27 |
runs-on: ubuntu-latest |
| 28 |
|
| 29 |
steps: |
| 30 |
- name: Checkout repository |
| 31 |
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 |
| 32 |
|
| 33 |
# Initializes the CodeQL tools for scanning. |
| 34 |
- name: Initialize CodeQL |
| 35 |
uses: github/codeql-action/init@c10b8064de6f491fea524254123dbe5e09572f13 # v4.35.1 |
| 36 |
with: |
| 37 |
languages: go |
| 38 |
|
| 39 |
- name: Autobuild |
| 40 |
uses: github/codeql-action/autobuild@c10b8064de6f491fea524254123dbe5e09572f13 # v4.35.1 |
| 41 |
|
| 42 |
- name: Perform CodeQL Analysis |
| 43 |
uses: github/codeql-action/analyze@c10b8064de6f491fea524254123dbe5e09572f13 # v4.35.1 |
| 44 |
|