Skip to content

Commit e1e5b03

Browse files
committed
Resolve latest-changes.yml
1 parent d517919 commit e1e5b03

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

.github/workflows/latest-changes.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: Latest Changes
22

33
on:
4-
pull_request_target:
4+
pull_request_target: # zizmor: ignore[dangerous-triggers]
55
branches:
66
- master
77
types:
@@ -16,11 +16,14 @@ on:
1616
required: false
1717
default: "false"
1818

19+
permissions: {}
20+
1921
jobs:
2022
latest-changes:
2123
runs-on: ubuntu-latest
2224
permissions:
2325
pull-requests: read
26+
if: github.event_name == 'workflow_dispatch' || github.event.pull_request.merged == true
2427
steps:
2528
- name: Dump GitHub context
2629
env:
@@ -29,7 +32,8 @@ jobs:
2932
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
3033
with:
3134
# To allow latest-changes to commit to the main branch
32-
token: ${{ secrets.LATEST_CHANGES }}
35+
token: ${{ secrets.LATEST_CHANGES }} # zizmor: ignore[secrets-outside-env]
36+
persist-credentials: true # required by tiangolo/latest-changes
3337
- uses: tiangolo/latest-changes@c9d329cb147f0ddf4fb631214e3f838ff17ccbbd # 0.4.1
3438
with:
3539
token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)