Skip to content

Commit

Permalink
add codeql analysis
Browse files Browse the repository at this point in the history
  • Loading branch information
weikanglim committed Apr 25, 2023
1 parent 62ed65d commit 8e1445a
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: codeql

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
schedule:
- cron: '40 3 * * 6'

jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write

steps:
- name: Checkout repository
uses: actions/checkout@v3

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

- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: "1.20"

- name: Build
run: go build ./...

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
with:
category: "/language:go"

0 comments on commit 8e1445a

Please sign in to comment.