Skip to content

feat: support base path prefix for OpenAI and Anthropic API targets #602

feat: support base path prefix for OpenAI and Anthropic API targets

feat: support base path prefix for OpenAI and Anthropic API targets #602

Workflow file for this run

name: Container Security Scan
on:
push:
branches: [main]
paths:
- 'containers/**'
- '.github/workflows/container-scan.yml'
pull_request:
branches: [main]
paths:
- 'containers/**'
- '.github/workflows/container-scan.yml'
schedule:
# Run weekly on Sundays at 00:00 UTC
- cron: '0 0 * * 0'
workflow_dispatch:
permissions:
contents: read
security-events: write
jobs:
scan-agent:
name: Scan Agent Container
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- name: Checkout repository
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v4
- name: Build Agent image
run: |
docker build -t awf-agent:${{ github.sha }} ./containers/agent
- name: Run Trivy vulnerability scanner (table output)
uses: aquasecurity/trivy-action@b6643a29fecd7f34b3597bc6acb0a98b03d33ff8 # v0.33.1
with:
image-ref: 'awf-agent:${{ github.sha }}'
format: 'table'
severity: 'CRITICAL,HIGH'
- name: Run Trivy vulnerability scanner (SARIF output)
uses: aquasecurity/trivy-action@b6643a29fecd7f34b3597bc6acb0a98b03d33ff8 # v0.33.1
with:
image-ref: 'awf-agent:${{ github.sha }}'
format: 'sarif'
output: 'trivy-agent-results.sarif'
severity: 'CRITICAL,HIGH'
- name: Upload Trivy scan results to GitHub Security tab
uses: github/codeql-action/upload-sarif@a4fda0891d53e117609b7ddb3570638c2c6d7c89 # v3
if: always()
with:
sarif_file: 'trivy-agent-results.sarif'
category: 'container-agent'
scan-squid:
name: Scan Squid Container
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- name: Checkout repository
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v4
- name: Build Squid image
run: |
docker build -t awf-squid:${{ github.sha }} ./containers/squid
- name: Run Trivy vulnerability scanner (table output)
uses: aquasecurity/trivy-action@b6643a29fecd7f34b3597bc6acb0a98b03d33ff8 # v0.33.1
with:
image-ref: 'awf-squid:${{ github.sha }}'
format: 'table'
severity: 'CRITICAL,HIGH'
- name: Run Trivy vulnerability scanner (SARIF output)
uses: aquasecurity/trivy-action@b6643a29fecd7f34b3597bc6acb0a98b03d33ff8 # v0.33.1
with:
image-ref: 'awf-squid:${{ github.sha }}'
format: 'sarif'
output: 'trivy-squid-results.sarif'
severity: 'CRITICAL,HIGH'
- name: Upload Trivy scan results to GitHub Security tab
uses: github/codeql-action/upload-sarif@a4fda0891d53e117609b7ddb3570638c2c6d7c89 # v3
if: always()
with:
sarif_file: 'trivy-squid-results.sarif'
category: 'container-squid'