Skip to content

Commit f13e366

Browse files
committed
security: harden execute-release.yml per zizmor
- Route AutoVer release tag/name through env vars in the GitHub release step (avoids template-injection via ${{ steps.* }} in a run block). - Suppress artipacked on Checkout: persist-credentials must stay true so the deploy-key git config survives for the version/changelog push.
1 parent 7fe4ddd commit f13e366

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

.github/workflows/execute-release.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ jobs:
5858
secret-ids: |
5959
DEPLOY_KEY, prod/devops/aws-dotnet-ai-deploy-key
6060
# Full clone of the trunk using the deploy key.
61-
- name: Checkout
61+
- name: Checkout # zizmor: ignore[artipacked] persist-credentials must stay true for the deploy-key push
6262
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 #v7.0.0
6363
with:
6464
ref: main
@@ -146,8 +146,10 @@ jobs:
146146
if: steps.freeze.outputs.frozen == 'false'
147147
env:
148148
GH_TOKEN: ${{ github.token }}
149+
RELEASE_TAG: ${{ steps.relmeta.outputs.tag }}
150+
RELEASE_NAME: ${{ steps.relmeta.outputs.name }}
149151
run: |
150-
gh release create "${{ steps.relmeta.outputs.tag }}" \
151-
--title "${{ steps.relmeta.outputs.name }}" \
152+
gh release create "$RELEASE_TAG" \
153+
--title "$RELEASE_NAME" \
152154
--notes-file "$RUNNER_TEMP/release_notes.md" \
153155
--target "$(git rev-parse HEAD)"

0 commit comments

Comments
 (0)