Skip to content

Commit 0e76f4f

Browse files
NiccoloFeimnencia
andauthored
ci: fix security-scans action reference broken by #394 (#400)
PR #394 accidentally reverted the security-scans action reference from the fully qualified syntax back to a local path, breaking the reusable workflow for external repositories like postgis-containers. Restore the fully qualified reference and add protective comments on both action references to prevent future regressions. Signed-off-by: Niccolò Fei <niccolo.fei@enterprisedb.com> Signed-off-by: Marco Nenciarini <marco.nenciarini@enterprisedb.com> Co-authored-by: Marco Nenciarini <marco.nenciarini@enterprisedb.com>
1 parent ce575e9 commit 0e76f4f

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

.github/workflows/bake_targets.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,9 @@ jobs:
145145
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
146146

147147
- name: Security checks
148-
uses: ./.github/actions/security-scans/
148+
# NOTE: Do not modify this to point to the local action "./.github/actions/security-scans",
149+
# as it will break workflows running bake_targets.yml (this workflow) from external repositories.
150+
uses: cloudnative-pg/postgres-containers/.github/actions/security-scans@main
149151
with:
150152
image: "${{ matrix.image }}"
151153
registry_user: ${{ github.actor }}
@@ -169,6 +171,8 @@ jobs:
169171
id-token: write
170172
steps:
171173
- name: Copy to production
174+
# NOTE: Do not modify this to point to the local action "./.github/actions/copy-images",
175+
# as it will break workflows running bake_targets.yml (this workflow) from external repositories.
172176
uses: cloudnative-pg/postgres-containers/.github/actions/copy-images@main
173177
with:
174178
bake_build_metadata: "${{ needs.testbuild.outputs.metadata }}"

0 commit comments

Comments
 (0)