Skip to content

feat(ci): Add Fortress Code Reviewer security scan workflow#5639

Merged
jam-jee merged 1 commit intoaws:masterfrom
jam-jee:fortress-scan-workflow
Mar 18, 2026
Merged

feat(ci): Add Fortress Code Reviewer security scan workflow#5639
jam-jee merged 1 commit intoaws:masterfrom
jam-jee:fortress-scan-workflow

Conversation

@jam-jee
Copy link
Copy Markdown
Collaborator

@jam-jee jam-jee commented Mar 18, 2026

What

Add a GitHub Actions workflow to run Fortress Code Reviewer security scan on every PR against the master branch.

Why

Enable automated AI-powered security vulnerability scanning on every PR to catch security issues before merge. Fortress uses AWS Bedrock (Claude) to analyze code for vulnerabilities.

How

The workflow (.github/workflows/fortress-scan.yml):

  • Triggers on pull_request_target against master
  • Performs collaborator check (auto-approve for collaborators, manual approval for external contributors)
  • Configures AWS credentials via OIDC
  • Triggers the sagemaker-python-sdk-ci-fortress-scan CodeBuild project

The CodeBuild project (deployed via SageMakerMLFPySDKInfraCDK):

  • Installs Fortress dependencies from PyPI at runtime
  • Runs Fortress scan with --disable-memory --disable-reasoning for CI speed
  • Reports findings via CodeBuild reports

Testing

  • Verified in gamma : Build SUCCEEDED
  • Verified in prod: Build SUCCEEDED
  • Install phase: ~37s, Scan phase: ~17 min

Add GitHub Actions workflow to run Fortress Code Reviewer security scan
on every PR against the master branch. The workflow:

- Triggers on pull_request_target against master
- Performs collaborator check (auto-approve for collaborators, manual
  approval for external contributors)
- Configures AWS credentials via OIDC
- Triggers the sagemaker-python-sdk-ci-fortress-scan CodeBuild project

The CodeBuild project installs Fortress at runtime from S3-hosted wheels
and uses Bedrock (Claude) to analyze code for security vulnerabilities.

---
X-AI-Prompt: Add Fortress security scan GitHub workflow for PR scanning
X-AI-Tool: Kiro
@jam-jee jam-jee merged commit d25cab5 into aws:master Mar 18, 2026
4 checks passed
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