Skip to content

Commit

Permalink
github/workflow: add token config to codeql-action/init
Browse files Browse the repository at this point in the history
  • Loading branch information
zchee committed May 25, 2021
1 parent f5d35a3 commit 8f02ac9
Showing 1 changed file with 12 additions and 13 deletions.
25 changes: 12 additions & 13 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -1,38 +1,37 @@
name: CodeQL
rame: "CodeQL"

on:
push:
branches:
- master
- "*"
pull_request:
branches:
- master
schedule:
- cron: '0 20 * * *'
# - cron: '0 20 * * *'
- cron: '22 11 * * 2'

jobs:
analyze:
name: Analyze
runs-on: ubuntu-20.04

permissions:
actions: read
contents: read
security-events: write

strategy:
fail-fast: false

steps:
- name: Checkout code
uses: actions/checkout@main
with:
fetch-depth: 2

- name: Install Go
uses: actions/setup-go@main
with:
go-version: 1.16.x
- name: Checkout repository
uses: actions/checkout@v2

- name: Initialize CodeQL
uses: github/codeql-action/init@v1
with:
languages: go
languages: 'go'

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1

0 comments on commit 8f02ac9

Please sign in to comment.