build: update pre-commit hooks #162
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Ref: https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/customizing-code-scanning | |
name: CodeQL | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
workflow_dispatch: # run manually from actions tab | |
# Set permissions at the job level. | |
permissions: {} | |
jobs: | |
analyze: | |
runs-on: ubuntu-24.04 | |
permissions: | |
actions: read | |
contents: read | |
security-events: write | |
steps: | |
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6 | |
# Ref: https://github.com/github/codeql-action | |
- name: Initialize CodeQL | |
uses: github/codeql-action/init@f079b8493333aace61c81488f8bd40919487bd9f # v3.25.7 | |
with: | |
languages: python | |
- name: Perform CodeQL Analysis | |
uses: github/codeql-action/analyze@f079b8493333aace61c81488f8bd40919487bd9f # v3.25.7 |