Skip to content

Commit

Permalink
Add CodeQL Security Scanning (#405)
Browse files Browse the repository at this point in the history
Signed-off-by: Shiwei Zhang <[email protected]>
  • Loading branch information
shizhMSFT authored Jun 23, 2022
1 parent 350f30b commit 5d13129
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: CodeQL

on:
push:
branches: main
pull_request:
branches: main
schedule:
- cron: '43 12 * * 6'

jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write
strategy:
matrix:
go-version: [1.18]
fail-fast: false
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Go ${{ matrix.go-version }} environment
uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go-version }}
check-latest: true
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: go
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2

0 comments on commit 5d13129

Please sign in to comment.