Skip to content

Commit f574b2c

Browse files
zejd-cicakpotyl
andauthored
fix: refactor app private key to be output instead of being in env
Co-authored-by: Emmanuel Rodriguez <[email protected]>
1 parent 1f3ef6f commit f574b2c

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

.github/workflows/publish.yaml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,11 @@ jobs:
3030
shell: bash
3131
run: |
3232
aws ssm get-parameter --name /github/app/CBMyFrontDesk/private-key --output text --with-decryption --query Parameter.Value > private.key
33-
echo "APP_PRIVATE_KEY<<EOF" >> $GITHUB_ENV
34-
cat private.key >> $GITHUB_ENV
35-
echo "EOF" >> $GITHUB_ENV
33+
{
34+
echo "key<<EOF"
35+
cat private.key
36+
echo "EOF"
37+
} >> $GITHUB_OUTPUT
3638
while read -r line;
3739
do
3840
if [[ -n "${line}" ]]; then
@@ -46,7 +48,7 @@ jobs:
4648
uses: tibdex/github-app-token@v2
4749
with:
4850
app_id: 391670
49-
private_key: ${{ env.APP_PRIVATE_KEY }}
51+
private_key: ${{ steps.app-private-key.outputs.key }}
5052

5153
- name: Checkout code
5254
uses: actions/checkout@v4

0 commit comments

Comments
 (0)