Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 321
Add CodeQL and Bandit Static Analysis Scans#560
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
513be56b08572d67cd71a0c2458b95238cf4d7632cFile filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
| name: "Static Analysis: Bandit Scan" | ||
| on: | ||
| push: | ||
| branches: | ||
| - "pull-request/[0-9]+" | ||
| - "main" | ||
| concurrency: | ||
| group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event_name }} | ||
| cancel-in-progress: true | ||
| jobs: | ||
| analyze: | ||
| runs-on: ubuntu-latest | ||
| permissions: | ||
| security-events: write | ||
| steps: | ||
| - name: Perform Bandit Analysis | ||
| uses: PyCQA/bandit-action@8a1b30610f61f3f792fe7556e888c9d7dffa52de # v1.0.0 | ||
leofang marked this conversation as resolved.
Outdated
Uh oh!There was an error while loading. Please reload this page. | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,39 @@ | ||
| name: "Static Analysis: CodeQL Scan" | ||
| on: | ||
| push: | ||
| branches: | ||
| - "pull-request/[0-9]+" | ||
| - "main" | ||
| concurrency: | ||
| group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event_name }} | ||
| cancel-in-progress: true | ||
kkraus14 marked this conversation as resolved.
Outdated
Uh oh!There was an error while loading. Please reload this page. | ||
| jobs: | ||
| analyze: | ||
| name: Analyze (${{ matrix.language }}) | ||
| runs-on: ubuntu-latest | ||
| permissions: | ||
| security-events: write | ||
| strategy: | ||
| fail-fast: false | ||
kkraus14 marked this conversation as resolved.
Outdated
Uh oh!There was an error while loading. Please reload this page. | ||
| matrix: | ||
| include: | ||
| - language: python | ||
| build-mode: none | ||
| steps: | ||
| - name: Checkout repository | ||
| uses: actions/checkout@v4 | ||
leofang marked this conversation as resolved.
Outdated
Uh oh!There was an error while loading. Please reload this page. | ||
| - name: Initialize CodeQL | ||
| uses: github/codeql-action/init@v3 | ||
| with: | ||
| languages: ${{ matrix.language }} | ||
| build-mode: ${{ matrix.build-mode }} | ||
| queries: security-extended | ||
| - name: Perform CodeQL Analysis | ||
| uses: github/codeql-action/analyze@v3 | ||
| with: | ||
| category: "/language:${{matrix.language}}" | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -6,16 +6,20 @@ ci: | ||
| autoupdate_branch: '' | ||
| autoupdate_commit_msg: '[pre-commit.ci] pre-commit autoupdate' | ||
| autoupdate_schedule: quarterly | ||
| skip: [] | ||
| skip: [bandit] | ||
kkraus14 marked this conversation as resolved.
Uh oh!There was an error while loading. Please reload this page. | ||
| submodules: false | ||
| repos: | ||
| - repo: https://github.com/astral-sh/ruff-pre-commit | ||
| rev: v0.11.4 | ||
| rev: 971923581912ef60a6b70dbf0c3e9a39563c9d47 #v0.11.4 | ||
| hooks: | ||
| - id: ruff | ||
| args: [--fix, --show-fixes] | ||
| - id: ruff-format | ||
| - repo: https://github.com/PyCQA/bandit | ||
| rev: 8ff25e07e487f143571cc305e56dd0253c60bc7b #v1.8.3 | ||
| hooks: | ||
| - id: bandit | ||
Comment on lines
19
to
22
CollaboratorAuthor There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This does pin the version of Bandit to v1.8.3 which could cause mismatches between this and the GitHub workflow. | ||
| default_language_version: | ||
| python: python3 | ||
Uh oh!
There was an error while loading. Please reload this page.