Skip to content

Commit

Permalink
Bring back CodeQL workflow to V1
Browse files Browse the repository at this point in the history
  • Loading branch information
kuskoman committed Feb 5, 2024
1 parent 387fb36 commit 1d107aa
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"
pull_request:
branches:
- "master"
schedule:
- cron: "38 10 * * 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: Setup Golang with cache
uses: magnetikonline/action-golang-cache@v4
with:
go-version: "^1.21"

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

- name: Build application binary
run: make build-linux

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

0 comments on commit 1d107aa

Please sign in to comment.