Skip to content

fix(security): suppress false-positive Bandit B105 in residual authz test - #104

Open
github-actions[bot] wants to merge 1 commit into
chore/a2a-prod-rollout-prepfrom
claude-auto-fix-ci-chore/a2a-prod-rollout-prep-30052212779
Open

fix(security): suppress false-positive Bandit B105 in residual authz test#104
github-actions[bot] wants to merge 1 commit into
chore/a2a-prod-rollout-prepfrom
claude-auto-fix-ci-chore/a2a-prod-rollout-prep-30052212779

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

Summary

  • Root cause: services/orchestrator/tests/test_residual_authz.py (introduced on the chore/a2a-prod-rollout-prep branch) assigns a hard-coded string to os.environ["JWT_SECRET"] at line 34. Bandit rule B105 (hardcoded_password_string) flags this, causing the security-scan CI job (test.yml) to exit with code 1.
  • Fix: Added # nosec B105 inline suppression comment on that line. This is a test-only secret with no production exposure — the comment is the canonical Bandit way to acknowledge intentional test fixtures.
  • Closes the failing security-scan job on PR chore(a2a): FuzeAgent-first prod rollout (DRAFT — needs owner secrets/config) #93.

Relates to: #93

Test plan

  • Verify bandit -r services/orchestrator --skip B101 -f txt no longer exits non-zero due to this file
  • Confirm security-scan job passes in CI on this PR

🤖 Generated with Claude Code

Bandit flags the hardcoded JWT_SECRET value in the test file as
B105 (hardcoded_password_string). This is a test-only secret with no
production exposure; add `# nosec B105` to silence the scanner so the
security-scan CI job no longer fails with exit code 1.

Fixes the failing security-scan job on PR #93.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@github-actions
github-actions Bot requested a review from izzywdev as a code owner July 23, 2026 23:09
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.

0 participants