Skip to content

Commit

Permalink
add codeql scan workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
harp-intel committed Oct 24, 2024
1 parent b40fe66 commit 7924a9f
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: "CodeQL"

on:
push:
branches: [ "main" ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ "main" ]
schedule:
- cron: '26 9 * * 3'

permissions:
contents: read

jobs:
analyze:
name: Analyze
runs-on: 'ubuntu-latest'
timeout-minutes: 360
permissions:
actions: read
contents: read
security-events: write
strategy:
fail-fast: false
matrix:
language: [ 'go' ]

steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Initialize CodeQL
uses: github/codeql-action/init@4759df8df70c5ebe7042c3029bbace20eee13edd # v2.23.1
with:
languages: ${{ matrix.language }}
- name:
run: |
mkdir -p internal/script/resources
touch internal/script/resources/dummy
mkdir -p internal/common/resources
touch internal/common/resources/dummy
make
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@4759df8df70c5ebe7042c3029bbace20eee13edd # v2.23.1
with:
category: "/language:${{matrix.language}}"

0 comments on commit 7924a9f

Please sign in to comment.