Skip to content

chore(deps)(deps): bump the github-actions group with 12 updates #285

chore(deps)(deps): bump the github-actions group with 12 updates

chore(deps)(deps): bump the github-actions group with 12 updates #285

Workflow file for this run

name: CodeQL Analysis
on:
push:
branches: [main]
pull_request:
branches: [main]
schedule:
# Run weekly on Wednesday at 6 AM UTC
- cron: '0 6 * * 3'
concurrency:
group: codeql-${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
permissions: {}
env:
TEMPL_VERSION: v0.3.977
jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
contents: read
security-events: write
strategy:
fail-fast: false
matrix:
language: [go]
steps:
- name: Harden runner
uses: step-security/harden-runner@9af89fc71515a100421586dfdb3dc9c984fbf411 # v2
with:
egress-policy: audit
- name: Checkout code
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
- name: Set up Go
uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6
with:
go-version-file: gearbox/go.mod
cache-dependency-path: |
gearbox/go.sum
gearbox-agent/go.sum
- name: Initialize CodeQL
uses: github/codeql-action/init@7211b7c8077ea37d8641b6271f6a365a22a5fbfa # v4
with:
languages: ${{ matrix.language }}
- name: Build gearbox
working-directory: ./gearbox
run: |
go install github.com/a-h/templ/cmd/templ@${{ env.TEMPL_VERSION }}
templ generate
go build ./...
- name: Build gearbox-agent
working-directory: ./gearbox-agent
run: go build ./...
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@7211b7c8077ea37d8641b6271f6a365a22a5fbfa # v4
with:
category: "/language:${{ matrix.language }}"