Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions .github/workflows/security-scan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@ jobs:
- name: Run Zizmor scan
uses: open-edge-platform/geti-ci/actions/zizmor@3a4b81ea648711eb638b34757427cd3ef71d19f1
with:
scan-scope: ${{ github.event_name == 'pull_request' && 'changed' || 'all' }}
scan-scope: ${{ (github.event_name == 'pull_request' || github.event_name == 'merge_group') && 'changed' || 'all' }}
severity-level: "LOW"
confidence-level: "LOW"
fail-on-findings: ${{ github.event_name == 'pull_request' && 'true' || 'false' }}
fail-on-findings: ${{ (github.event_name == 'pull_request' || github.event_name == 'merge_group') && 'true' || 'false' }}

bandit-scan:
runs-on: ubuntu-latest
Expand All @@ -55,15 +55,15 @@ jobs:
- name: Run Bandit scan
uses: open-edge-platform/geti-ci/actions/bandit@3a4b81ea648711eb638b34757427cd3ef71d19f1
with:
scan-scope: ${{ github.event_name == 'pull_request' && 'changed' || 'all' }}
scan-scope: ${{ (github.event_name == 'pull_request' || github.event_name == 'merge_group') && 'changed' || 'all' }}
severity-level: "LOW"
confidence-level: "LOW"
config_file: "pyproject.toml"
fail-on-findings: ${{ github.event_name == 'pull_request' && 'true' || 'false' }}
fail-on-findings: ${{ (github.event_name == 'pull_request' || github.event_name == 'merge_group') && 'true' || 'false' }}

trivy-scan:
runs-on: ubuntu-latest
if: github.event_name != 'pull_request'
if: github.event_name == 'push' || github.event_name == 'schedule' || github.event_name == 'workflow_dispatch'
permissions:
contents: read
security-events: write # Needed to upload the results to code-scanning dashboard
Expand Down Expand Up @@ -96,6 +96,6 @@ jobs:
- name: Run Semgrep scan
uses: open-edge-platform/geti-ci/actions/semgrep@3a4b81ea648711eb638b34757427cd3ef71d19f1
with:
scan-scope: ${{ github.event_name == 'pull_request' && 'changed' || 'all' }}
scan-scope: ${{ (github.event_name == 'pull_request' || github.event_name == 'merge_group') && 'changed' || 'all' }}
severity: "LOW"
fail-on-findings: ${{ github.event_name == 'pull_request' && 'true' || 'false' }}
fail-on-findings: ${{ (github.event_name == 'pull_request' || github.event_name == 'merge_group') && 'true' || 'false' }}