Skip to content

chore(ci)(deps): bump securego/gosec from 2.26.1 to 2.27.1 in the actions-minor-and-patch group #29

chore(ci)(deps): bump securego/gosec from 2.26.1 to 2.27.1 in the actions-minor-and-patch group

chore(ci)(deps): bump securego/gosec from 2.26.1 to 2.27.1 in the actions-minor-and-patch group #29

Workflow file for this run

name: codeql
on:
push:
branches: [main]
pull_request:
branches: [main]
schedule:
- cron: "0 7 * * 1" # weekly Monday 07:00 UTC
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
jobs:
analyze:
name: analyze go
runs-on: ubuntu-latest
permissions:
contents: read
security-events: write
actions: read
steps:
- uses: step-security/harden-runner@9af89fc71515a100421586dfdb3dc9c984fbf411 # v2.19.4
with:
egress-policy: audit
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
with:
go-version: "1.26"
cache: true
- name: Detect Go source
id: detect
shell: bash
run: |
if find . -name '*.go' -not -path './.*' -not -path './vendor/*' -not -path '*/testdata/*' -print -quit | grep -q .; then
echo "has-source=true" >> "$GITHUB_OUTPUT"
else
echo "has-source=false" >> "$GITHUB_OUTPUT"
fi
- name: Initialize CodeQL
if: steps.detect.outputs.has-source == 'true'
uses: github/codeql-action/init@7211b7c8077ea37d8641b6271f6a365a22a5fbfa # v4.36.0
with:
languages: go
queries: security-extended,security-and-quality
- name: Autobuild
if: steps.detect.outputs.has-source == 'true'
uses: github/codeql-action/autobuild@7211b7c8077ea37d8641b6271f6a365a22a5fbfa # v4.36.0
- name: Analyze
if: steps.detect.outputs.has-source == 'true'
uses: github/codeql-action/analyze@7211b7c8077ea37d8641b6271f6a365a22a5fbfa # v4.36.0
with:
category: "/language:go"