Skip to content

Harden GitHub Actions workflows #705

Harden GitHub Actions workflows

Harden GitHub Actions workflows #705

Workflow file for this run

name: CodeQL
on:
pull_request: ~
push:
branches:
- main
permissions: read-all
jobs:
go:
name: Go
runs-on: ubuntu-24.04
permissions:
security-events: write # To upload CodeQL results
steps:
- name: Checkout repository
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
with:
persist-credentials: false
- name: Install Go
uses: actions/setup-go@41dfa10bad2bb2ae585af6ee5bb4d7d973ad74ed # v5.1.0
with:
go-version-file: go.mod
- name: Initialize CodeQL
uses: github/codeql-action/init@4f3212b61783c3c68e8309a0f18a699764811cda # v3.27.1
with:
languages: go
- name: Perform CodeQL analysis
uses: github/codeql-action/analyze@4f3212b61783c3c68e8309a0f18a699764811cda # v3.27.1