Skip to content

Commit 8037c61

Browse files
committed
Update permissions and events for workflow
This commit makes a few notable changes: 1. Use the GitHub Actions automatic token for committing changes 2. Include workflow file in paths to trigger workflow 3. Checkout the default branch explicitly
1 parent 99516d6 commit 8037c61

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

.github/workflows/third-party-licenses.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,11 @@ on:
44
branches:
55
- trunk
66
paths:
7+
- .github/licenses.tmpl
8+
- .github/workflows/third-party-licenses.yml
79
- go.mod
810
- go.sum
9-
- ".github/licenses.tmpl"
10-
- "script/licenses*"
11+
- script/licenses*
1112
jobs:
1213
# This job is responsible for updating the third-party license reports and source code.
1314
# It should be safe to cancel as the latest version of `go.mod` should be checked in.
@@ -16,11 +17,13 @@ jobs:
1617
concurrency:
1718
group: ${{ github.workflow }}
1819
cancel-in-progress: true
20+
permissions:
21+
contents: write
1922
steps:
2023
- name: Check out code
2124
uses: actions/checkout@v4
2225
with:
23-
token: ${{ secrets.AUTOMATION_TOKEN }}
26+
ref: trunk
2427

2528
- name: Set up Go
2629
uses: actions/setup-go@v5

0 commit comments

Comments
 (0)