From 1e03363816a2492779189d63df57357d89b186ff Mon Sep 17 00:00:00 2001 From: Georges-Antoine Assi Date: Tue, 22 Sep 2026 17:46:55 -0400 Subject: [PATCH] ci: clear the Trunk findings on the image scan workflows aquasecurity's IP allow list rejects GitHub API calls from hosted runners, so pinact 403s verifying the trivy-action tag comment. A .pinact.yaml rule skips verification for aquasecurity actions only once they are pinned to a full SHA, so an unpinned ref is still flagged. zizmor (enabled on master) wants the $/ self-repository syntax for the reusable workflow call, but actionlint 1.7.12 rejects it, so the finding is suppressed inline for now. Co-Authored-By: Claude Opus 5.5 (1M context) --- .github/workflows/build.yml | 3 ++- .pinact.yaml | 8 ++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 .pinact.yaml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 67cf977cf..55a8f58f3 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -291,7 +291,8 @@ jobs: contents: read packages: read security-events: write - uses: ./.github/workflows/image-scan.yml + # actionlint doesn't understand the $/ self-repository syntax yet. + uses: ./.github/workflows/image-scan.yml # zizmor: ignore[self-repository] with: images: >- ["ghcr.io/${{ github.repository_owner }}/romm:${{ needs.merge.outputs.version }}", diff --git a/.pinact.yaml b/.pinact.yaml new file mode 100644 index 000000000..997b18fb0 --- /dev/null +++ b/.pinact.yaml @@ -0,0 +1,8 @@ +# yaml-language-server: $schema=https://raw.githubusercontent.com/suzuki-shunsuke/pinact/refs/heads/main/json-schema/pinact.json +version: 3 +rules: + # aquasecurity's IP allow list rejects API calls from GitHub-hosted runners, + # so skip verifying the tag comment once the action is pinned to a SHA. + - ignore: true + conditions: + - expr: ActionRepoOwner == "aquasecurity" && ActionVersion matches "^[0-9a-f]{40}$"