Skip to content

chore(security): reduce AppSec scanner Bedrock cost - #5

Merged
abir-vim merged 2 commits into
mainfrom
chore/appsec-cost-controls
Oct 8, 2026
Merged

abir-vim merged 2 commits into
mainfrom
chore/appsec-cost-controls

Conversation

@abir-vim

@abir-vim abir-vim commented Oct 8, 2026

Copy link
Copy Markdown
Collaborator

Automated fleet sync of the Vim AppSec Agent. Scans when review starts instead of after every push, skips high-volume deployment/publish bots, supports the centrally configured Sonnet 5 profile, and avoids retrying permanent Bedrock failures. The fail-closed high-severity gate and PR findings comments remain enabled. See scanner-org for the source template.

@github-actions

github-actions Bot commented Oct 8, 2026 •

Copy link
Copy Markdown

Vim AppSec Agent

Passed — findings are below the gate (blocks at high or dependency BLOCK).

Critical High Medium Low Info Dep BLOCK Dep WARN
0 0 0 2 0 0 0

Findings

Low (2)

New dependency-only policy skips the Bedrock SAST scan for a specific bot author

  • Where: .github/workflows/security.yml:80
  • CWE: CWE-285
  • Remediation: Keep the fail-safe (mode=full on any non-dummy file or git-diff error). Consider also constraining dependency-only to PRs with no diff hunks that add executable content and asserting the PR touches no dependency manifests, and periodically audit that the vim-gitops-app[bot] identity cannot be assumed by untrusted actors.

Dependency-only BLOCK decision relies solely on database_specific.severity

  • Where: .github/workflows/security.yml:145
  • CWE: CWE-754
  • Remediation: When classifying OSV vulnerabilities, fall back to the CVSS 'severity' array (and/or map 'moderate' to medium) when database_specific.severity is absent, so a missing GitHub-specific severity field cannot silently downgrade a critical advisory from BLOCK to WARN.

Gate blocks at severity high or a dependency marked BLOCK.

Questions, false positives, or feedback — ping @abir-vim.

@abir-vim
abir-vim merged commit 2a89696 into main Oct 8, 2026
3 checks passed
@abir-vim
abir-vim deleted the chore/appsec-cost-controls branch October 8, 2026 14:29
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.

1 participant