Skip to content

Limit PR Bandit scan to changed files#888

Draft
Copilot wants to merge 2 commits into
mainfrom
copilot/fix-dls-scan-bandit-job
Draft

Limit PR Bandit scan to changed files#888
Copilot wants to merge 2 commits into
mainfrom
copilot/fix-dls-scan-bandit-job

Conversation

Copilot AI commented Jun 2, 2026

Copy link
Copy Markdown
Contributor

The DLS SCAN: Bandit job failed because it scanned the entire repository (scan-scope: all) and surfaced existing Medium findings unrelated to the PR. This update narrows the PR workflow to evaluate only files changed in the pull request.

  • Workflow scope correction

    • Updated Bandit invocation in .github/workflows/dls-pr-workflow.yaml from full-repo scan to changed-files scan.
    • Preserves existing severity/confidence thresholds and fail-on-findings behavior for relevant PR diffs.
  • Impact

    • Prevents unrelated baseline findings from blocking PRs.
    • Keeps Bandit as an effective gate on newly introduced or modified code.
# .github/workflows/dls-pr-workflow.yaml
with:
  scan-scope: "changed"   # was "all"
  severity-level: "MEDIUM"
  confidence-level: "MEDIUM"
  fail-on-findings: true

Copilot AI changed the title [WIP] Fix failing GitHub Actions job 'DLS SCAN: Bandit' Limit PR Bandit scan to changed files Jun 2, 2026
Copilot AI requested a review from kblaszczak-intel June 2, 2026 09:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants