Skip to content

Commit

Permalink
setup CodeQL workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
mmorel-35 authored Aug 29, 2024
1 parent 4c9ae43 commit ca65277
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: [main]
pull_request:
branches: [main]
schedule:
- cron: '31 6 * * 1'

permissions:
contents: read

jobs:
codeql-analyze:
name: CodeQL Analyze
runs-on: ubuntu-latest

permissions:
security-events: write
actions: read

strategy:
fail-fast: false
matrix:
language: [ 'go' ]

Check failure on line 26 in .github/workflows/codeql.yml

View workflow job for this annotation

GitHub Actions / Lint

26:20 [brackets] too many spaces inside brackets

Check failure on line 26 in .github/workflows/codeql.yml

View workflow job for this annotation

GitHub Actions / Lint

26:25 [brackets] too many spaces inside brackets

steps:
- name: Checkout repository
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7

Check warning on line 30 in .github/workflows/codeql.yml

View workflow job for this annotation

GitHub Actions / Lint

30:73 [comments] too few spaces before comment

Check failure on line 31 in .github/workflows/codeql.yml

View workflow job for this annotation

GitHub Actions / Lint

31:1 [trailing-spaces] trailing spaces
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}

Check failure on line 37 in .github/workflows/codeql.yml

View workflow job for this annotation

GitHub Actions / Lint

37:1 [trailing-spaces] trailing spaces
- name: Autobuild
uses: github/codeql-action/autobuild@v3

Check failure on line 40 in .github/workflows/codeql.yml

View workflow job for this annotation

GitHub Actions / Lint

40:1 [trailing-spaces] trailing spaces
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3

0 comments on commit ca65277

Please sign in to comment.