Skip to content

Commit 9676232

Browse files
authored
fix: lock down private-fork-release to aztec-packages-private (#20708)
Getting this in for testing.
1 parent 9fdd20e commit 9676232

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

.github/workflows/private-fork-release.yml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Accepts a release dispatch from a private fork.
1+
# Accepts a release dispatch from the private fork.
22
# Checks out the fork's code and runs the standard release pipeline
33
# using this (public) repo's secrets and publishing identity.
44
# The tag is pushed here with [skip ci] to avoid triggering the normal ci3.yml release.
@@ -13,18 +13,25 @@ on:
1313
description: "Commit SHA from the source repo"
1414
required: true
1515
source_repo:
16-
description: "Source repository to clone"
16+
description: "Source repository (must be AztecProtocol/aztec-packages-private)"
1717
required: true
1818

1919
jobs:
2020
release:
2121
runs-on: ubuntu-latest
2222
environment: master
2323
steps:
24+
- name: Validate source repo
25+
run: |
26+
if [[ "${{ inputs.source_repo }}" != "AztecProtocol/aztec-packages-private" ]]; then
27+
echo "::error::source_repo must be AztecProtocol/aztec-packages-private, got '${{ inputs.source_repo }}'"
28+
exit 1
29+
fi
30+
2431
- name: Checkout source
2532
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
2633
with:
27-
repository: ${{ inputs.source_repo }}
34+
repository: AztecProtocol/aztec-packages-private
2835
ref: ${{ inputs.commit }}
2936
token: ${{ secrets.AZTEC_BOT_GITHUB_TOKEN }}
3037
fetch-depth: 1
@@ -47,7 +54,7 @@ jobs:
4754
RELEASE_ALL: "1"
4855
REF_NAME: ${{ inputs.tag }}
4956
RUN_ID: ${{ github.run_id }}
50-
SOURCE_REPOSITORY: ${{ inputs.source_repo }}
57+
SOURCE_REPOSITORY: AztecProtocol/aztec-packages-private
5158
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
5259
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
5360
GITHUB_TOKEN: ${{ secrets.AZTEC_BOT_GITHUB_TOKEN }}

0 commit comments

Comments
 (0)