Skip to content

Commit

Permalink
ci: Adding codeQL
Browse files Browse the repository at this point in the history
Signed-off-by: Vincent Boutour <bob@vibioh.fr>
  • Loading branch information
ViBiOh committed Mar 20, 2024
1 parent b788482 commit 1c396d3
Showing 1 changed file with 50 additions and 0 deletions.
50 changes: 50 additions & 0 deletions .github/workflows/codeql-analysis.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
---
name: CodeQL

permissions:
actions: none
checks: none
contents: none
deployments: none
issues: none
packages: none
pages: none
pull-requests: none
repository-projects: none
security-events: write

on:
push:
branches:
- main
pull_request:
branches:
- main
schedule:
- cron: "0 0 * * 6"

jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
language:
- go
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Golang
uses: actions/setup-go@v5
with:
go-version: "^1.22"
cache: true
- name: Setup CodeQL
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
- name: Build
run: make build
- name: CodeQL
uses: github/codeql-action/analyze@v3

0 comments on commit 1c396d3

Please sign in to comment.