Skip to content

Commit 3c69583

Browse files
authored
Merge pull request #25 from target/safe-check-for-forks
Separate out diff-poetry-lock workflow with pull_request_target
2 parents aabb34b + 59c78c8 commit 3c69583

1 file changed

Lines changed: 25 additions & 0 deletions

File tree

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Run diff-poetry-lock safe for forks
2+
on: # zizmor: ignore[dangerous-triggers] Limitations on checkout safen this.
3+
pull_request_target:
4+
branches:
5+
- main
6+
paths:
7+
- poetry.lock
8+
9+
permissions: {}
10+
11+
jobs:
12+
diff-lockfile-main:
13+
runs-on: ubuntu-latest
14+
name: Diff poetry.lock
15+
continue-on-error: true
16+
steps:
17+
- name: Checkout
18+
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
19+
with:
20+
persist-credentials: false
21+
ref: ${{ github.event.pull_request.head.sha }}
22+
sparse-checkout: poetry.lock
23+
- name: Diff poetry.lock
24+
uses: | # zizmor: ignore[unpinned-uses] It's safe to use main on our own repo.
25+
target/diff-poetry-lock@main

0 commit comments

Comments
 (0)