Skip to content

[6.x] Harden GitHub actions with zizmor suggestions#18933

Open
riasvdv wants to merge 1 commit into
6.xfrom
feature/harden-github-actions
Open

[6.x] Harden GitHub actions with zizmor suggestions#18933
riasvdv wants to merge 1 commit into
6.xfrom
feature/harden-github-actions

Conversation

@riasvdv
Copy link
Copy Markdown
Contributor

@riasvdv riasvdv commented May 20, 2026

Comment on lines -15 to +52
- uses: ncipollo/release-action@v1
with:
body: ${{ github.event.client_payload.notes }}
makeLatest: ${{ github.event.client_payload.latest }}
name: ${{ github.event.client_payload.version }}
prerelease: ${{ github.event.client_payload.prerelease }}
tag: ${{ github.event.client_payload.tag }}
- name: Create release
env:
GH_TOKEN: ${{ github.token }}
RELEASE_BODY: ${{ github.event.client_payload.notes }}
RELEASE_LATEST: ${{ github.event.client_payload.latest }}
RELEASE_NAME: ${{ github.event.client_payload.version }}
RELEASE_PRERELEASE: ${{ github.event.client_payload.prerelease }}
RELEASE_TAG: ${{ github.event.client_payload.tag }}
run: |
args=(release create "$RELEASE_TAG" --title "$RELEASE_NAME" --notes "$RELEASE_BODY")

if [[ "$RELEASE_PRERELEASE" == "true" ]]; then
args+=(--prerelease)
fi

case "$RELEASE_LATEST" in
true)
args+=(--latest)
;;
false)
args+=(--latest=false)
;;
legacy|"")
;;
*)
echo "Unsupported latest value: $RELEASE_LATEST" >&2
exit 1
;;
esac

gh "${args[@]}"
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure if this one is really worth it, though it's not terribly complicated

@riasvdv riasvdv requested a review from brandonkelly May 20, 2026 19:14
@riasvdv riasvdv marked this pull request as ready for review May 20, 2026 19:14
@brandonkelly brandonkelly requested review from angrybrad and removed request for brandonkelly May 26, 2026 15:22
fi

git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What’s the significance of this email/username?

Copy link
Copy Markdown
Contributor

@AugustMiller AugustMiller May 26, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, bizarre, this is actually the mechanism for making @github-actions appear as the author… 😩

New question: if this is arbitrary, what benefit does it hold, vs. attributing to @shinybrad or another account/committer we “own.”

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants