Skip to content

Commit 3707ddf

Browse files
committed
.github/workflows/01-make-dist.yml: try pull_request_target again, to use context of the main repo for actions [#1400]
Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
1 parent 267230d commit 3707ddf

1 file changed

Lines changed: 8 additions & 11 deletions

File tree

.github/workflows/01-make-dist.yml

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,14 @@ on:
1111
branches: [ "master", "FTY", "fightwarn", "FTY-obs" ]
1212
tags:
1313
- v*
14-
pull_request:
14+
pull_request_target:
1515
# The branches below must be a subset of the branches above
1616
branches: [ "master", "FTY", "fightwarn", "FTY-obs" ]
1717
schedule:
1818
- cron: '15 12 * * 0'
1919
workflow_dispatch:
2020
# Allow manually running the action, e.g. if disabled after some quietness in the source
2121

22-
# NOTE: These seem to not work for standard GITHUB_TOKEN generated
23-
# for each run, so a MAKE_DIST_TOKEN was made with equivalent list
24-
# of "fine-grained" rules.
2522
permissions:
2623
contents: read
2724
issues: write
@@ -56,7 +53,7 @@ jobs:
5653
with:
5754
comment-tag: latest-tarball
5855
message: Dist and Docs will be linked here after the "make dist" job completes.
59-
github-token: ${{ secrets.MAKE_DIST_TOKEN }}
56+
#github-token: ${{ secrets.MAKE_DIST_TOKEN }}
6057

6158
- name: "GHA-01: Make dist and docs tarballs - report download URL - s1"
6259
uses: marocchino/sticky-pull-request-comment@v2
@@ -66,8 +63,8 @@ jobs:
6663
header: latest-tarball-sticky
6764
only_create: true
6865
message: Dist and Docs will be linked here after the "make dist" job completes.
69-
github-token: ${{ secrets.MAKE_DIST_TOKEN }}
70-
GITHUB_TOKEN: ${{ secrets.MAKE_DIST_TOKEN }}
66+
#github-token: ${{ secrets.MAKE_DIST_TOKEN }}
67+
#GITHUB_TOKEN: ${{ secrets.MAKE_DIST_TOKEN }}
7168

7269
- name: Checkout repository
7370
uses: actions/checkout@v5
@@ -251,7 +248,7 @@ jobs:
251248
artifact_id: id,
252249
})
253250
})
254-
github-token: ${{ secrets.MAKE_DIST_TOKEN }}
251+
#github-token: ${{ secrets.MAKE_DIST_TOKEN }}
255252

256253
- name: Upload tarball and its checksum artifacts
257254
uses: actions/upload-artifact@v4
@@ -274,7 +271,7 @@ jobs:
274271
with:
275272
comment-tag: latest-tarball
276273
message: Dist and Docs [NUT-tarballs-${{ steps.subst-github-ref-name.outputs.result }}.zip}](${{ steps.upload_artifact.outputs.artifact-url }}) are available for commit ${{ github.sha }}
277-
github-token: ${{ secrets.MAKE_DIST_TOKEN }}
274+
#github-token: ${{ secrets.MAKE_DIST_TOKEN }}
278275

279276
# https://github.com/marocchino/sticky-pull-request-comment
280277
- name: "GHA-01: Make dist and docs tarballs - report download URL - s2"
@@ -285,5 +282,5 @@ jobs:
285282
header: latest-tarball-sticky
286283
only_create: true
287284
message: Dist and Docs [NUT-tarballs-${{ steps.subst-github-ref-name.outputs.result }}.zip}](${{ steps.upload_artifact.outputs.artifact-url }}) are available for commit ${{ github.sha }}
288-
github-token: ${{ secrets.MAKE_DIST_TOKEN }}
289-
GITHUB_TOKEN: ${{ secrets.MAKE_DIST_TOKEN }}
285+
#github-token: ${{ secrets.MAKE_DIST_TOKEN }}
286+
#GITHUB_TOKEN: ${{ secrets.MAKE_DIST_TOKEN }}

0 commit comments

Comments
 (0)