Skip to content

Commit

Permalink
Merge pull request #220 from tpvasconcelos/codeql
Browse files Browse the repository at this point in the history
Create codeql.yml
  • Loading branch information
tpvasconcelos authored Oct 13, 2024
2 parents 4d0d35f + bee2237 commit 4ef7971
Show file tree
Hide file tree
Showing 2 changed files with 43 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 @@
# CodeQL workflow for Python
#
# About code scanning:
# - https://docs.github.com/en/code-security/code-scanning/introduction-to-code-scanning/about-code-scanning
# Repo code scanning alerts:
# - https://github.com/tpvasconcelos/ridgeplot/security/code-scanning
#
name: "CodeQL"

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
schedule:
- cron: '23 16 * * 6'

jobs:
codeql-python:
name: Analyze (Python)
runs-on: 'ubuntu-latest'
timeout-minutes: 5
permissions:
# required for all workflows
security-events: write
# required to fetch internal or private CodeQL packs
# packages: read
# only required for workflows in private repositories
# actions: read
# contents: read
steps:
- uses: actions/checkout@v4

- uses: github/codeql-action/init@v3
with:
# Supported languages: 'c-cpp', 'csharp', 'go', 'java-kotlin', 'javascript-typescript', 'python', 'ruby', 'swift'
languages: 'python'
build-mode: 'none'

- uses: github/codeql-action/analyze@v3
with:
category: "/language:python"
1 change: 1 addition & 0 deletions docs/reference/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ Unreleased changes
- Add Dependabot configuration file ({gh-pr}`211`)
- Add GitHub issue templates ({gh-pr}`211`)
- Add support for Python 3.13 ({gh-pr}`217`)
- Add a CodeQL GitHub workflow ({gh-pr}`220`)

---

Expand Down

0 comments on commit 4ef7971

Please sign in to comment.