Skip to content

Code Scanning 🔦 #146

Code Scanning 🔦

Code Scanning 🔦 #146

Workflow file for this run

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