CodeQL #12
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" | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: '21 23 * * 1' | |
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@v4 | |
# Initializes the CodeQL tools for scanning. | |
- name: Initialize CodeQL | |
uses: github/codeql-action/init@v2 | |
with: | |
languages: ${{ matrix.language }} | |
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java). | |
# Go does not require a build step, and this action will attempt to build Go projects by default. | |
- name: Autobuild | |
uses: github/codeql-action/autobuild@v2 | |
# Remove the Install dependencies step as it's not necessary for a Go project. | |
# If your project has specific build steps, replace the Autobuild step with those. | |
# For example, if you use Go modules: | |
# - name: Build Project | |
# run: go build ./... | |
- name: Perform CodeQL Analysis | |
uses: github/codeql-action/analyze@v2 |