Merge pull request #586 from fxamacker/dependabot/github_actions/gith… #733
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "CodeQL" | |
# Remove default permissions | |
permissions: {} | |
on: | |
push: | |
branches: [ main, master ] | |
pull_request: | |
# The branches below must be a subset of the branches above | |
branches: [ main, master ] | |
schedule: | |
- cron: '30 14 * * 0' | |
# | | | | | | |
# | | | | day of the week (0–6 with 0=Sunday) | |
# | | | month (1–12) | |
# | | day of month (1–31) | |
# | hour (0–23 in UTC) | |
# minute (0–59) | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.run_id }} | |
cancel-in-progress: true | |
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@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | |
# Initializes the CodeQL tools for scanning. | |
- name: Initialize CodeQL | |
uses: github/codeql-action/init@461ef6c76dfe95d5c364de2f431ddbd31a417628 # v3.26.9 | |
with: | |
languages: ${{ matrix.language }} | |
# Don't need setup-go because default version of Go is updated regularly in ubuntu-latest. | |
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java). | |
# If this step fails, then you should remove it and run the build manually (see below) | |
- name: Autobuild | |
uses: github/codeql-action/autobuild@461ef6c76dfe95d5c364de2f431ddbd31a417628 # v3.26.9 | |
- name: Perform CodeQL Analysis | |
uses: github/codeql-action/analyze@461ef6c76dfe95d5c364de2f431ddbd31a417628 # v3.26.9 |