Skip to content

Bump github/codeql-action from 3.27.0 to 3.27.1 (#1336) #3438

Bump github/codeql-action from 3.27.0 to 3.27.1 (#1336)

Bump github/codeql-action from 3.27.0 to 3.27.1 (#1336) #3438

name: "CodeQL"
on:
push:
branches:
- main
pull_request:
branches:
- main
schedule:
- cron: '32 8 * * 2'
jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write
strategy:
fail-fast: false
matrix:
language:
- 'go'
steps:
- name: Checkout repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Filter paths
uses: dorny/paths-filter@v3
id: changes
with:
filters: |
gocode:
- 'pkg/**'
- 'cmd/**'
- uses: actions/setup-go@41dfa10bad2bb2ae585af6ee5bb4d7d973ad74ed # v5.1.0
with:
go-version-file: 'go.mod'
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
if: steps.changes.outputs.gocode == 'true'
uses: github/codeql-action/init@4f3212b61783c3c68e8309a0f18a699764811cda # v3.27.1
with:
languages: '${{ matrix.language }}'
- name: Build
if: steps.changes.outputs.gocode == 'true'
run: |
make build
- name: Perform CodeQL Analysis
if: steps.changes.outputs.gocode == 'true'
uses: github/codeql-action/analyze@4f3212b61783c3c68e8309a0f18a699764811cda # v3.27.1