Skip to content

Commit

Permalink
ci: add CodeQL workflow (#178)
Browse files Browse the repository at this point in the history
This PR adds a workflow that runs the CodeQL analyzer on each push and
PR, and also on a daily basis.
  • Loading branch information
MegaRedHand authored Jan 16, 2025
1 parent 902d7f3 commit 15ed5d6
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: "codeql-scanning"

on:
push:
branches:
- main
- 'release/*'
pull_request:
branches:
- main
- 'release/*'
schedule:
- cron: '0 9 * * *'

jobs:
CodeQL-Build:
runs-on: ubuntu-latest

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

steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
submodules: recursive

- name: Install golang
uses: actions/setup-go@v5
with:
go-version: '1.21.13'

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: go

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

0 comments on commit 15ed5d6

Please sign in to comment.