Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .changeset/sdk-79-template-injection-fixes.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
---
---
14 changes: 10 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,14 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Check User Permission
if: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name != github.repository && steps.checkAccess.outputs.require-result == 'false' }}
env:
TRIGGERING_ACTOR: ${{ github.triggering_actor }}
USER_PERMISSION: ${{ steps.checkAccess.outputs.user-permission }}
ACTOR: ${{ github.actor }}
run: |
echo "${{ github.triggering_actor }} does not have permissions on this repo."
echo "Current permission level is ${{ steps.checkAccess.outputs.user-permission }}"
echo "Job originally triggered by ${{ github.actor }}"
echo "$TRIGGERING_ACTOR does not have permissions on this repo."
echo "Current permission level is $USER_PERMISSION"
echo "Job originally triggered by $ACTOR"
exit 1

pre-checks:
Expand Down Expand Up @@ -84,8 +88,10 @@ jobs:

- name: Require Changeset
if: ${{ github.event_name != 'merge_group' && github.event.pull_request.draft == false }}
env:
PR_AUTHOR: ${{ github.event.pull_request.user.login }}
run: |
if [[ "${{ github.event.pull_request.user.login }}" = "clerk-cookie" || "${{ github.event.pull_request.user.login }}" = "renovate[bot]" ]]; then
if [[ "$PR_AUTHOR" = "clerk-cookie" || "$PR_AUTHOR" = "renovate[bot]" ]]; then
echo 'Skipping';
exit 0;
else
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/e2e-staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ on:

permissions:
contents: read
actions: write

concurrency:
# Key on the clerk_go commit being validated rather than the (effectively always "main")
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/labeler-apply.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,12 @@ name: Labeler (apply)
# trigger while preserving fork-PR labeling (SDK-80).

on:
workflow_run:
# Privileged trigger, intentionally: this is the trusted half of the labeler
# handshake and never runs PR-controlled code. The apply job validates the
# artifact PR number against the trigger run's head_sha and head repository
# before using it (see the Resolve-and-verify step below and SDK-80). zizmor's
# dangerous-triggers audit can't see that guard, so suppress it here.
workflow_run: # zizmor: ignore[dangerous-triggers]
workflows: [Labeler]
types:
- completed
Expand Down
Loading