Przeglądaj źródła

ci: re-pin GYST callers to v1.41.0 and grant pull-requests: read (#471) (#556)

* ci: re-pin GYST callers to v1.41.0 and grant pull-requests: read (#471)

Re-pin every GYST reference in this repository's workflows from the v1.38.0 or v1.36.0 commit to 5c1a813d8ad21adf845d221c59d17ce9406d5e53 (tag v1.41.0). Add pull-requests: read to each caller job that calls python-ci, bash-ci or tofu-ci, since v1.41.0 classify jobs read the changed-file list. Permissions of other jobs are unchanged.

Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>

* ci: re-pin lab GYST callers to v1.41.0 and fix review threads on #556

- labs wordpress example: security.yml and bash-ci.yml re-pinned to
  5c1a813d8ad21adf845d221c59d17ce9406d5e53 (# v1.41.0), matching ci.yml.
- labs wordpress example: scripts job gets pull-requests: read.
- labs wordpress example: wrap the promote-production run line in a block
  scalar; the plain scalar held ': ' and did not parse.
- ci.yml: tofu-ci allow-list comment names v1.41.0 (checked against the
  v1.41.0 default allowed-endpoints).

Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Haiku 5.5 <noreply@anthropic.com>
ChiefGyk3D 4 dni temu
rodzic
commit
88199ae5d1

+ 6 - 4
.github/workflows/ci.yml

@@ -9,9 +9,10 @@ permissions: {}
 
 jobs:
   tofu:
-    uses: ChiefGyk3D/git-your-ship-together/.github/workflows/tofu-ci.yml@9e0d7b2e7e8530e2b1bb200ecb4fbf6de021881f # v1.38.0
+    uses: ChiefGyk3D/git-your-ship-together/.github/workflows/tofu-ci.yml@5c1a813d8ad21adf845d221c59d17ce9406d5e53 # v1.41.0
     permissions:
       contents: read
+      pull-requests: read
       id-token: write
     with:
       directories: "stacks/00-foundation stacks/10-access stacks/20-telemetry stacks/30-workloads stacks/50-edge stacks/aws/00-foundation stacks/aws/10-access modules/vpc modules/firewall modules/twingate-bootstrap modules/twingate-connector modules/edge-host modules/docker-host modules/aws/vpc modules/aws/firewall modules/aws/twingate-connector modules/spaces-bucket"
@@ -21,13 +22,14 @@ jobs:
       # opa fmt, check --strict and test over the Spacelift push policy.
       policy-directories: .spacelift/policies
       # The workflow-lint job installs pyflakes with pipx. The tofu-ci default
-      # allow-list at v1.38.0 already includes pypi.org and
+      # allow-list at v1.41.0 already includes pypi.org and
       # files.pythonhosted.org, so no extra endpoints are needed.
 
   python:
-    uses: ChiefGyk3D/git-your-ship-together/.github/workflows/python-ci.yml@9e0d7b2e7e8530e2b1bb200ecb4fbf6de021881f # v1.38.0
+    uses: ChiefGyk3D/git-your-ship-together/.github/workflows/python-ci.yml@5c1a813d8ad21adf845d221c59d17ce9406d5e53 # v1.41.0
     permissions:
       contents: read
+      pull-requests: read
       id-token: write
     with:
       python-versions: '["3.12", "3.13"]'
@@ -50,7 +52,7 @@ jobs:
       docker-build: false
 
   security:
-    uses: ChiefGyk3D/git-your-ship-together/.github/workflows/security.yml@9e0d7b2e7e8530e2b1bb200ecb4fbf6de021881f # v1.38.0
+    uses: ChiefGyk3D/git-your-ship-together/.github/workflows/security.yml@5c1a813d8ad21adf845d221c59d17ce9406d5e53 # v1.41.0
     permissions:
       contents: read
       security-events: write

+ 1 - 1
.github/workflows/wiki.yml

@@ -34,7 +34,7 @@ permissions: {}
 
 jobs:
   wiki:
-    uses: ChiefGyk3D/git-your-ship-together/.github/workflows/wiki-publish.yml@9e0d7b2e7e8530e2b1bb200ecb4fbf6de021881f # v1.38.0
+    uses: ChiefGyk3D/git-your-ship-together/.github/workflows/wiki-publish.yml@5c1a813d8ad21adf845d221c59d17ce9406d5e53 # v1.41.0
     permissions:
       contents: write  # the publish job only, on main; the generate job holds contents: read
     with:

+ 5 - 3
labs/wordpress-at-scale/ci/example-wordpress-ci.yml

@@ -18,7 +18,7 @@ permissions: {}
 jobs:
   security:
     # Secret scanning, CodeQL for the workflows, dependency review. Pin = commit; comment = version.
-    uses: ChiefGyk3D/git-your-ship-together/.github/workflows/security.yml@9e0d7b2e7e8530e2b1bb200ecb4fbf6de021881f # v1.38.0
+    uses: ChiefGyk3D/git-your-ship-together/.github/workflows/security.yml@5c1a813d8ad21adf845d221c59d17ce9406d5e53 # v1.41.0
     permissions:
       contents: read
       security-events: write
@@ -29,9 +29,10 @@ jobs:
 
   scripts:
     # shellcheck and shfmt over the deploy scripts.
-    uses: ChiefGyk3D/git-your-ship-together/.github/workflows/bash-ci.yml@9e0d7b2e7e8530e2b1bb200ecb4fbf6de021881f # v1.38.0
+    uses: ChiefGyk3D/git-your-ship-together/.github/workflows/bash-ci.yml@5c1a813d8ad21adf845d221c59d17ce9406d5e53 # v1.41.0
     permissions:
       contents: read
+      pull-requests: read
       id-token: write
 
   php:
@@ -119,7 +120,8 @@ jobs:
         with:
           name: release
       - name: Promote the SAME artifact, then smoke test; on failure switch 'current' back
-        run: echo "promote: same checksum as staging, switch 'current', smoke test, rollback if it fails"
+        run: |
+          echo "promote: same checksum as staging, switch 'current', smoke test, rollback if it fails"
 
   ci-green:
     name: CI green