Skip to content

Commit

Permalink
Merge pull request #2099 from crazy-max/ci-codeql
Browse files Browse the repository at this point in the history
ci: enable SAST scanning with CodeQL
  • Loading branch information
crazy-max authored Oct 30, 2023
2 parents 2f1b7a0 + e168fd8 commit de1a560
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: codeql

on:
push:
branches:
- 'master'
- 'v[0-9]*'
pull_request:

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

env:
GO_VERSION: 1.21.3

jobs:
codeql:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v4
-
name: Set up Go
uses: actions/setup-go@v4
with:
go-version: ${{ env.GO_VERSION }}
-
name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: go
-
name: Autobuild
uses: github/codeql-action/autobuild@v2
-
name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
with:
category: "/language:go"

0 comments on commit de1a560

Please sign in to comment.