Skip to content

Commit 95e997d

Browse files
committed
fix: use permission-actions and scope token to target repos
createWorkflowDispatch requires actions:write, not contents:write. The token also needs to be scoped to the target repositories.
1 parent e0bc381 commit 95e997d

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

.github/workflows/trigger_gen.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ jobs:
1515
with:
1616
app-id: ${{ secrets.CQ_APP_ID }}
1717
private-key: ${{ secrets.CQ_APP_PRIVATE_KEY }}
18-
permission-contents: write
18+
permission-actions: write
19+
repositories: plugin-pb-go,plugin-pb-python,plugin-pb-java,plugin-pb-javascript
1920
- name: Trigger plugin-pb-go code generation
2021
uses: actions/github-script@v6
2122
with:

0 commit comments

Comments
 (0)