Skip to content

Commit 2c1a91f

Browse files
committed
Strip down permissions.
1 parent 3c60970 commit 2c1a91f

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

.github/workflows/pull-requests-built-files.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name: Manage Built Files for PRs
33

44
on:
5-
pull_request_target:
5+
pull_request:
66
branches:
77
- trunk
88
- '6.[8-9]'
@@ -27,7 +27,7 @@ on:
2727
concurrency:
2828
# The concurrency group contains the workflow name and the branch name for pull requests
2929
# or the commit hash for any other events.
30-
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request_target' && github.head_ref || github.sha }}
30+
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.head_ref || github.sha }}
3131

3232
# Disable permissions for all available scopes by default.
3333
# Any needed permissions should be configured at the job level.
@@ -39,10 +39,8 @@ jobs:
3939
name: Updates built files when necessary
4040
runs-on: ubuntu-24.04
4141
permissions:
42-
issues: write
4342
pull-requests: write
44-
contents: write
45-
if: ${{ github.event_name == 'pull_request_target' }}
43+
if: ${{ github.event_name == 'pull_request' }}
4644
steps:
4745
- name: Checkout repository
4846
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2

0 commit comments

Comments
 (0)