Skip to content

Commit

Permalink
Merge pull request #773 from Unidata/dependabot-github_actions-github…
Browse files Browse the repository at this point in the history
…-codeql-action-3

MNT: (deps): Bump github/codeql-action from 2 to 3
  • Loading branch information
dopplershift authored Oct 31, 2024
2 parents d2d5997 + 178f086 commit 0aab49f
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 17 deletions.
7 changes: 7 additions & 0 deletions .github/codeql/codeql-config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
name: "CodeQL Config"

queries:
- uses: security-and-quality

paths-ignore:
- examples
34 changes: 17 additions & 17 deletions .github/workflows/code-analysis.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,27 @@
name: "Code Analysis"

concurrency:
group: ${{ github.workflow}}-${{ github.head_ref }}
cancel-in-progress: true

on:
push:
branches: [master, ]
pull_request:
# The branches below must be a subset of the branches above
branches: [master]
paths:
- '**.py'
- '.github/codeql/**'
- '.github/workflows/code-analysis.yml'

schedule:
- cron: '0 8 * * 6'

permissions:
contents: read
security-events: write

jobs:
CodeQL:
runs-on: ubuntu-latest
Expand All @@ -17,23 +30,10 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v3

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
# Override language selection by uncommenting this and choosing your languages
# with:
# languages: go, javascript, csharp, python, cpp, java

# ℹ️ Command-line programs to run using the OS shell.
# 📚 https://git.io/JvXDl

# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
# and modify them (or add more) to build your code if your project
# uses a compiled language

#- run: |
# make bootstrap
# make release
uses: github/codeql-action/init@v3
with:
config-file: ./.github/codeql/codeql-config.yml

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

0 comments on commit 0aab49f

Please sign in to comment.