image workflows on tags #212
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: | |
push: | |
branches: | |
- '*' | |
pull_request: | |
branches: | |
- main | |
workflow_dispatch: {} | |
jobs: | |
# Semantic code analysis to discover vulnerabilities in the codebase | |
# using GitHub's CodeQL. | |
# https://codeql.github.com/docs/ | |
analyze: | |
name: analyze | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
language: ['go'] | |
steps: | |
# Checkout code | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
# Prepare runner environment | |
- name: Set up runner environment | |
run: ./.github/workflows/assets/utils.sh setup | |
env: | |
GITHUB_USER: ${{ github.actor }} | |
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }} | |
# Initializes the CodeQL tools for scanning. | |
- name: Initialize CodeQL | |
uses: github/codeql-action/init@v2 | |
with: | |
languages: ${{ matrix.language }} | |
# If you wish to specify custom queries, you can do so here or in a config file. | |
# By default, queries listed here will override any specified in a config file. | |
# Prefix the list here with "+" to use these queries and those in the config file. | |
# queries: ./path/to/local/query, your-org/your-repo/queries@main | |
# Auto build attempts to build any compiled languages (C/C++, C#, or Java). | |
- name: Auto build | |
uses: github/codeql-action/autobuild@v2 | |
# Run manual build only if auto-build fails | |
- name: Manual build | |
if: ${{ failure() }} | |
run: | | |
make bootstrap | |
make release | |
# Run analysis | |
- name: Perform CodeQL analysis | |
uses: github/codeql-action/analyze@v2 |