Skip to content

Commit

Permalink
Merge pull request #30 from John-Robbins/add-codeql
Browse files Browse the repository at this point in the history
Set up a weekly scanning run with CodeQL. As tbp isn't doing anything interesting, I don't need it on push and pull requests.
  • Loading branch information
John-Robbins authored Sep 5, 2024
2 parents b97b7a2 + f7852a9 commit ce0d153
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# As tbpp is not doing anything interesting, I just want CodeQL to scan once a week just to be sure.
name: "CodeQL Advanced"

on:
schedule:
- cron: '0 04 * * 0'

jobs:
analyze:
name: Analyze (${{ matrix.language }})
runs-on: ubuntu-latest
permissions:
# required for all workflows
security-events: write
# required to fetch internal or private CodeQL packs
packages: read

strategy:
fail-fast: false
matrix:
include:
- language: python
build-mode: none
steps:
- name: Checkout repository
uses: actions/checkout@v4
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
build-mode: ${{ matrix.build-mode }}
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
with:
category: "/language:${{matrix.language}}"

0 comments on commit ce0d153

Please sign in to comment.