diff --git a/.agents/skills/docker-and-compose/SKILL.md b/.agents/skills/docker-and-compose/SKILL.md index 48b87c1..9bcda42 100644 --- a/.agents/skills/docker-and-compose/SKILL.md +++ b/.agents/skills/docker-and-compose/SKILL.md @@ -46,7 +46,8 @@ Every port published on the developer's machine, by the compose file or by `laun 2. Anything the app writes goes under `/app/data`, the only folder the app user can write to. 3. Pin every image in compose to a version, and bump them with the monthly package update (`packages-and-dependencies`). 4. Change base images through the `ARG`s at the top, not inside a `FROM`. -5. Test locally with `docker compose up -d --build`, then hit `/health/ready` and the API reference. +5. Keep the OS upgrade at the top of the `run` stage (`apk upgrade` on Alpine, `dnf upgrade` on the Lambda image). Base images lag behind OS security fixes, and the container scan fails on a HIGH finding that already has a fix. +6. Test locally with `docker compose up -d --build`, then hit `/health/ready` and the API reference. ## Don't diff --git a/.github/workflows/build-pipeline.yml b/.github/workflows/build-pipeline.yml index 8f21296..c3b8c6e 100644 --- a/.github/workflows/build-pipeline.yml +++ b/.github/workflows/build-pipeline.yml @@ -556,6 +556,17 @@ jobs: id-token: write steps: + # Check out first: checkout empties the workspace, so anything downloaded before it is lost. + - name: Checkout + id: checkout + uses: actions/checkout@v7 + + - name: Setup .NET + id: setup + uses: actions/setup-dotnet@v6 + with: + dotnet-version: '10.0.x' + - name: Download Template id: download-template uses: actions/download-artifact@v8 @@ -591,16 +602,6 @@ jobs: DRY_RUN: ${{ needs.release.outputs.dry-run == 'true' && 'yes' || '' }} shell: bash - - name: Checkout - id: checkout - uses: actions/checkout@v7 - - - name: Setup .NET - id: setup - uses: actions/setup-dotnet@v6 - with: - dotnet-version: '10.0.x' - - name: Publish Function id: publish-function run: dotnet publish ./src/Presentation/Presentation.csproj --configuration Release --output sbom-source --no-self-contained