Skip to content

Commit 6d92ac4

Browse files
authored
Merge pull request #459 from opf/fix/more-workflow-fixes
Fix some more workflows after zizmor changes
2 parents 6030cbe + 82938b1 commit 6d92ac4

6 files changed

Lines changed: 4 additions & 1 deletion

File tree

.github/workflows/release-checklist.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
permissions:
1616
contents: read
1717
issues: write
18-
pull-requests: read
18+
pull-requests: write
1919
steps:
2020
- name: Checkout repository
2121
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6

.github/workflows/test-visual.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,12 +63,14 @@ jobs:
6363
BRANCH="${GITHUB_EVENT_PULL_REQUEST_HEAD_REF}"
6464
git config user.name "github-actions[bot]"
6565
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
66+
git remote set-url origin "https://x-access-token:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git"
6667
git stash push -u -m "pre-auto-commit" || true
6768
git fetch origin "$BRANCH" --depth=1
6869
git checkout "$BRANCH"
6970
git reset --hard "origin/$BRANCH"
7071
git stash pop || true
7172
env:
73+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
7274
GITHUB_EVENT_PULL_REQUEST_HEAD_REF: ${{ github.event.pull_request.head.ref }}
7375
- id: auto-commit
7476
if: ${{ github.event.pull_request.head.repo.full_name == github.repository }}
@@ -77,6 +79,7 @@ jobs:
7779
commit_message: Generating component snapshots
7880
file_pattern: .playwright/screenshots/**/*.png .playwright/screenshots/**/*.yml
7981
push_options: --force-with-lease
82+
token: ${{ secrets.GITHUB_TOKEN }}
8083
- name: "Changes detected"
8184
if: steps.auto-commit.outputs.changes_detected == 'true'
8285
uses: phulsechinmay/rewritable-pr-comment@a1b041997fa84ec3e524ee9dee5ba0b5f4e73604 # v0.3.0
2 Bytes
Loading
-1 Bytes
Loading
-16 Bytes
Loading
-15 Bytes
Loading

0 commit comments

Comments
 (0)