Code Scanning 🔦 #164
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: "Code Scanning 🔦" | |
on: | |
push: | |
branches: ["main"] | |
paths: | |
- ".github/workflows/codeql.yaml" | |
- ".github/codeql/**/*" | |
pull_request: | |
branches: ["main"] | |
schedule: | |
# https://crontab.guru/#12_9_*_*_2 | |
- cron: "12 9 * * 2" | |
jobs: | |
CodeQL-Build: | |
# CodeQL runs on ubuntu-latest, windows-latest, and macos-latest | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/[email protected] | |
- name: detect go version | |
id: detect | |
run: echo "::set-output name=go-version::$(grep "^go " go.mod | cut -d " " -f 2)" | |
- name: "get go" | |
uses: actions/setup-go@v3 | |
with: | |
go-version: ${{ steps.detect.outputs.go-version }} | |
- name: Initialize CodeQL | |
uses: github/codeql-action/init@v2 | |
- name: Autobuild | |
uses: github/codeql-action/autobuild@v2 | |
- name: Perform CodeQL Analysis | |
uses: github/codeql-action/analyze@v2 |