Skip to content

Commit

Permalink
updating codeql.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
nots1dd authored Nov 18, 2024
1 parent aba673e commit 7674d94
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: "CodeQL Analysis for Anvilock"

on:
push:
branches: [ "main" ] # Trigger on push to the 'main' branch
pull_request:
# The branches below must be a subset of the branches above
branches: [ "main" ] # Trigger on pull requests to the 'main' branch

jobs:
codeql:
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write

strategy:
fail-fast: false
matrix:
language: [ "c" ] # Specify the primary language of your repo

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}

- name: Run build-ubuntu.sh script
run: |
cd .github/workflows/
chmod +x ./build-ubuntu.sh
./build-ubuntu.sh
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2

0 comments on commit 7674d94

Please sign in to comment.