Repository navigation
fix(action): fail on a reportless run and encode the baseline name #554
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CodeQL | |
| on: | |
| push: | |
| branches: [ "main" ] | |
| pull_request: | |
| branches: [ "main" ] | |
| schedule: | |
| # Run every Monday at 06:00 UTC | |
| - cron: '0 6 * * 1' | |
| jobs: | |
| analyze: | |
| timeout-minutes: 20 | |
| name: Analyze (Go) | |
| runs-on: ubuntu-latest | |
| permissions: | |
| actions: read | |
| contents: read | |
| security-events: write | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7 | |
| - name: Set up Go | |
| uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7 | |
| with: | |
| go-version-file: 'go.mod' | |
| - name: Initialize CodeQL | |
| uses: github/codeql-action/init@33d7b85da1a04171e211befe2c739303b9a4c066 # v4 | |
| with: | |
| languages: go | |
| queries: security-extended | |
| - name: Build | |
| run: go build -buildvcs=false ./... | |
| - name: Perform CodeQL Analysis | |
| uses: github/codeql-action/analyze@33d7b85da1a04171e211befe2c739303b9a4c066 # v4 | |
| with: | |
| category: "/language:go" |