Skip to content

Commit e3647bb

Browse files
committed
Resolve latest-changes.yml
1 parent ba71aeb commit e3647bb

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.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
- main
77
types:
@@ -16,9 +16,12 @@ on:
1616
required: false
1717
default: 'false'
1818

19+
permissions: {}
20+
1921
jobs:
2022
latest-changes:
2123
runs-on: ubuntu-latest
24+
if: github.event_name == 'workflow_dispatch' || github.event.pull_request.merged == true
2225
steps:
2326
- name: Dump GitHub context
2427
env:
@@ -27,7 +30,8 @@ jobs:
2730
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
2831
with:
2932
# To allow latest-changes to commit to the main branch
30-
token: ${{ secrets.LATEST_CHANGES }}
33+
token: ${{ secrets.LATEST_CHANGES }} # zizmor: ignore[secrets-outside-env]
34+
persist-credentials: true # required by tiangolo/latest-changes
3135
# Allow debugging with tmate
3236
- name: Setup tmate session
3337
uses: mxschmitt/action-tmate@c0afd6f790e3a5564914980036ebf83216678101 # v3.23

0 commit comments

Comments
 (0)