Create codeql-analysis.yml

This commit is contained in:
Brendan Ward 2021-12-30 12:02:04 -08:00 committed by GitHub
parent f8a2d74446
commit fae6d13a8a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

49
.github/workflows/codeql-analysis.yml vendored Normal file
View File

@ -0,0 +1,49 @@
name: "CodeQL"
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
schedule:
- cron: '43 1 * * 6'
jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write
strategy:
fail-fast: false
matrix:
go: [1.17.x]
steps:
- name: Install GCC (Ubuntu)
run: |
sudo apt update
sudo apt install -y gcc-multilib g++-multilib
shell: bash
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go }}
- name: Checkout repository
uses: actions/checkout@v2
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
with:
languages: go
- name: Build
run: go build .
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1