Skip to content

Commit 5df006d

Browse files
ci: fix token permissions (#359)
* ci: try fixing permissions * Try this * Undo a change * Explicit secrets
1 parent 6b05c90 commit 5df006d

3 files changed

Lines changed: 3 additions & 5 deletions

File tree

.github/changeset-preview/action.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,4 @@ runs:
1818
--body-file /tmp/changeset-preview.md \
1919
--marker "<!-- changeset-version-preview -->"
2020
env:
21-
REPOSITORY: ${{ github.repository }}
22-
GH_TOKEN: ${{ github.token }}
21+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/changeset-preview/upsert-pr-comment.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ function parseArgs(argv) {
2626
bodyFile: values['body-file'],
2727
repo: values.repo ?? process.env.GITHUB_REPOSITORY,
2828
marker: values.marker ?? DEFAULT_MARKER,
29-
token: values.token ?? (process.env.GITHUB_TOKEN || process.env.GH_TOKEN),
29+
token: values.token ?? process.env.GITHUB_TOKEN,
3030
apiUrl:
3131
values['api-url'] ??
3232
(process.env.GITHUB_API_URL || 'https://api.github.com'),

.github/comment-on-release/action.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,4 @@ runs:
1212
run: node ${{ github.action_path }}/comment-on-release.ts
1313
env:
1414
PUBLISHED_PACKAGES: ${{ inputs.published-packages }}
15-
REPOSITORY: ${{ github.repository }}
16-
GH_TOKEN: ${{ github.token }}
15+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)