Skip to content

Commit

Permalink
actions: Add CodeQL Action
Browse files Browse the repository at this point in the history
Run the GitHub CodeQL action.  It runs on Python code only.

This action is set up as a separate file so that it can be run on a
schedule, in addition to on pushes and pull requests.
  • Loading branch information
akkornel committed Jul 6, 2021
1 parent 86ba5b1 commit 7a0c139
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# This GitHub Action runs CodeQL checks against the project.
name: "CodeQL Checks"

# This is run on every push, pull request, and on a schedule (to include any
# new checks that are developed).
# The schedule is 10 AM every Tuesday.
on:
push:
pull_request:
schedule:
- cron: '0 10 * * 2'

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

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

- name: Initialize CodeQL
uses: github/codeql-action/init@v1
with:
languages: python

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1

0 comments on commit 7a0c139

Please sign in to comment.