Build, Scan & Test Containers
uses: huntridge-labs/argus/.github/workflows/build-containers.yml@1.15.2-rc.0
Pipeline
5 jobs (2 matrix) ยท scroll to zoom ยท drag to pan
Triggers
- Pull request
- Push
- Manual dispatch
Permissions
| Scope | Access |
|---|---|
contents |
read |
security-events |
write |
pull-requests |
write |
packages |
read |
Jobs
matrix โ Resolve image matrix
Runs on: ubuntu-latest ยท Timeout: 5 minutes ยท Condition: github.event_name != 'push' || !startsWith(github.event.head_commit.message, 'chore(release):')
Steps:
- Checkout โ
actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 - Build matrix from argus.yml
build โ Build Images
Runs on: ubuntu-latest ยท Timeout: 15 minutes ยท Depends on: matrix ยท Condition: github.event_name != 'push' || !startsWith(github.event.head_commit.message, 'chore(release):')
Steps:
- Checkout โ
actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 - Build image
- Save image to artifact
- Upload image artifact โ
actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9
scan โ Scan ${{ matrix.image }}
Runs on: ubuntu-latest ยท Timeout: 15 minutes ยท Depends on: matrix, build ยท Condition: github.event_name != 'push' || !startsWith(github.event.head_commit.message, 'chore(release):')
Steps:
- Download image artifact โ
actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 - Load image
- Checkout (for argus SDK) โ
actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 - Set up Python โ
actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 - Install Argus SDK
- Scan image & render summary (Argus SDK)
- Upload SARIF to GitHub Security โ
github/codeql-action/upload-sarif@33d7b85da1a04171e211befe2c739303b9a4c066 - Upload scan artifacts โ
actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9
test-cli โ Test Argus CLI
Runs on: ubuntu-latest ยท Timeout: 15 minutes ยท Depends on: matrix, build ยท Condition: github.event_name != 'push' || !startsWith(github.event.head_commit.message, 'chore(release):')
Steps:
- Checkout โ
actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 - Set up Python โ
actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 - Build and install Argus wheel
- Download all image artifacts โ
actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 - Load and retag images
- Package safety check
- Verify wheel installation
- Run argus scan
- Resolve latest run directory
- Verify outputs
- Validate SARIF
- Validate JSON results
- Validate audit trail
- Validate output-vars
- Upload test results โ
actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9
comment-pr โ Container Scan Summary
Runs on: ubuntu-latest ยท Depends on: scan, test-cli
Steps:
- Checkout (for comment-pr action) โ
actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 - Download scanner summaries โ
actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 - Set up Python โ
actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 - Install Argus SDK
- Combine scanner summaries
- Comment PR with scan results โ
./.github/actions/comment-pr