Skip to content

chore(ci): pin actions to SHA, tighten release perms, link SECURITY.md #9

chore(ci): pin actions to SHA, tighten release perms, link SECURITY.md

chore(ci): pin actions to SHA, tighten release perms, link SECURITY.md #9

Workflow file for this run

name: CodeQL
on:
push:
branches: [main]
pull_request:
branches: [main]
schedule:
# Weekly: Monday 04:27 UTC. Off-hours, off-peak.
- cron: "27 4 * * 1"
permissions:
contents: read
jobs:
analyze:
name: Analyze (${{ matrix.language }})
runs-on: ubuntu-latest
timeout-minutes: 20
permissions:
security-events: write
packages: read
actions: read
contents: read
strategy:
fail-fast: false
matrix:
include:
# Go is compiled — autobuild is correct here. `none` mode would skip analysis.
- language: go
build-mode: autobuild
steps:
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
- uses: actions/setup-go@40f1582b2485089dde7abd97c1529aa768e1baff # v5.6.0
with:
go-version-file: go.mod
cache: true
- uses: github/codeql-action/init@1521896cd211af95be3f02edf6f436e10b819c27 # v3.35.4
with:
languages: ${{ matrix.language }}
build-mode: ${{ matrix.build-mode }}
# security-and-quality is the strictest query suite — appropriate
# for a security-relevant project (mention sanitization).
queries: security-and-quality
- uses: github/codeql-action/analyze@1521896cd211af95be3f02edf6f436e10b819c27 # v3.35.4
with:
category: "/language:${{ matrix.language }}"