Skip to content

refactor workflows to allow migration from ecr to ghcr and onto gihthub hosted runner #61

refactor workflows to allow migration from ecr to ghcr and onto gihthub hosted runner

refactor workflows to allow migration from ecr to ghcr and onto gihthub hosted runner #61

Workflow file for this run

---
name: 🩻 Scan
on:
pull_request:
branches:
- main
permissions: {}
jobs:
scan:
name: Scan
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout
id: checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Build with Docker Compose
id: build
shell: bash
env:
IMAGE_NAME: ${{ github.repository }}
IMAGE_TAG: ${{ github.sha }}
run: |
docker compose build
- name: Scan
id: scan
uses: aquasecurity/trivy-action@18f2510ee396bbf400402947b394f2dd8c87dbb0 # v0.29.0
env:
TRIVY_DB_REPOSITORY: public.ecr.aws/aquasecurity/trivy-db:2
TRIVY_JAVA_DB_REPOSITORY: public.ecr.aws/aquasecurity/trivy-java-db:1
with:
image-ref: ${{ github.repository }}_eks:${{ github.sha }}
severity: HIGH,CRITICAL
exit-code: 1