| name: codeql |
| |
| concurrency: |
| group: ${{ github.workflow }}-${{ github.ref }} |
| # Cancel stale PR runs without interrupting push, tag, scheduled, or |
| # manually dispatched validation. |
| cancel-in-progress: ${{ github.event_name == 'pull_request' }} |
| |
| permissions: |
| contents: read |
| |
| on: |
| push: |
| branches: |
| - 'master' |
| - '[0-9]+.[0-9]+' |
| - '[0-9]+.x' |
| tags: |
| - 'v*' |
| - 'docker-v*' |
| - 'api/v*' |
| - 'client/v*' |
| pull_request: |
| schedule: |
| # ┌───────────── minute (0 - 59) |
| # │ ┌───────────── hour (0 - 23) |
| # │ │ ┌───────────── day of the month (1 - 31) |
| # │ │ │ ┌───────────── month (1 - 12) |
| # │ │ │ │ ┌───────────── day of the week (0 - 6) (Sunday to Saturday) |
| # │ │ │ │ │ |
| # │ │ │ │ │ |
| # │ │ │ │ │ |
| # * * * * * |
| - cron: '0 9 * * 4' |
| |
| env: |
| GO_VERSION: "1.26.7" |
| |
| jobs: |
| codeql: |
| runs-on: ubuntu-24.04 |
| timeout-minutes: 10 |
| permissions: |
| contents: read |
| security-events: write |
| steps: |
| - |
| name: Checkout |
| uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 |
| with: |
| fetch-depth: 2 |
| - |
| name: Set up Go |
| uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0 |
| with: |
| go-version: ${{ env.GO_VERSION }} |
| cache: false |
| - |
| name: Initialize CodeQL |
| uses: github/codeql-action/init@f205ea1c3313d32999d8d6a48b4f6530d4437b38 # v4.37.4 |
| with: |
| languages: go |
| - |
| name: Autobuild |
| uses: github/codeql-action/autobuild@f205ea1c3313d32999d8d6a48b4f6530d4437b38 # v4.37.4 |
| - |
| name: Perform CodeQL Analysis |
| uses: github/codeql-action/analyze@f205ea1c3313d32999d8d6a48b4f6530d4437b38 # v4.37.4 |
| with: |
| category: "/language:go" |