Skip to content

Commit 4764e57

Browse files
authored
Merge pull request #1412 from themegrill/tg-autopilot/fix-inherit-secrets
fix: pr-build-zip uses explicit secrets instead of inherit
2 parents 8359df6 + 08c8a62 commit 4764e57

2 files changed

Lines changed: 24 additions & 1 deletion

File tree

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
name: Copilot review on comment
2+
3+
on:
4+
pull_request_target:
5+
types: [opened]
6+
issue_comment:
7+
types: [created]
8+
9+
jobs:
10+
review:
11+
uses: wpeverest/.github/.github/workflows/copilot-review-on-comment.yml@master
12+
secrets:
13+
BOT_TOKEN: ${{ secrets.BOT_TOKEN }}

.github/workflows/pr-build-zip.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,14 @@ jobs:
2424
artifacts-bucket: themegrill-pr-artifacts
2525
public-base-url: https://themegrill-pr-artifacts.s3.amazonaws.com
2626
s3-region: us-east-1
27-
secrets: inherit
27+
# Cross-org call: this repo actually lives in themegrill (transferred
28+
# from wpeverest), and the reusable workflow lives in wpeverest/.github --
29+
# `secrets: inherit` cannot reach across that boundary reliably (same
30+
# issue confirmed on user-registration-pro: worked briefly right after
31+
# the transfer, then started failing with "Secret BOT_TOKEN is required,
32+
# but not provided" once GitHub's own org-membership check caught up).
33+
# Name every secret explicitly instead, same as every other themegrill repo.
34+
secrets:
35+
BOT_TOKEN: ${{ secrets.BOT_TOKEN }}
36+
ARTIFACTS_KEY: ${{ secrets.ARTIFACTS_KEY }}
37+
ARTIFACTS_SECRET: ${{ secrets.ARTIFACTS_SECRET }}

0 commit comments

Comments
 (0)