Skip to content

CodeQL

CodeQL #170

Workflow file for this run

name: "CodeQL"
on:
schedule:
- cron: '0 0 * * 0'
pull_request:
branches: [main]
permissions:
contents: read
security-events: write
jobs:
codeql:
runs-on: ubuntu-latest
env:
GOPROXY: https://goproxy.githubapp.com/mod,https://proxy.golang.org/,direct
GOPRIVATE: ''
GONOPROXY: ''
GONOSUMDB: github.com/github/*
steps:
# From https://github.com/github/goproxy/blob/main/doc/user.md#set-up:
- name: Configure Go private module access
run: |
echo "machine goproxy.githubapp.com login nobody password ${{ secrets.GOPROXY_TOKEN }}" >> $HOME/.netrc
- name: Checkout repository
uses: actions/checkout@v2
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: go
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2