Skip to content

Commit a7ebdb3

Browse files
authored
Set up workflow permissions for trusted publishing (#1644)
### Change summary This PR updates the `publish_release.yml` workflow file: 1. enables the permission `id-token: write` for OpenID Connect (OIDC) authentication for use with [Trusted Publishing with npmjs](https://docs.npmjs.com/trusted-publishers) 2. removes the auth token as it's no longer used when Trusted Publishing is used <!-- Briefly describe the changes introduced in this pull request. Include context or reasoning behind the changes, even if they seem minor. If relevant, link to any related discussions (e.g. Slack threads, tickets, documents). --> All Submissions: * [x] Have you followed the guidelines in our Contributing document? * [x] Have you checked to ensure there aren't other open [Pull Requests](https://github.com/fastly/cli/pulls) for the same update/change? <!-- You can erase any parts of this template not applicable to your Pull Request. --> ### New Feature Submissions: * [ ] Does your submission pass tests? N/A ### Changes to Core Features: * [ ] Have you written new tests for your core changes, as applicable? * [ ] Have you successfully run tests with your changes locally? N/A ### User Impact None <!-- What is the user impact of this change? --> ### Are there any considerations that need to be addressed for release? None <!-- Any breaking changes, etc -->
1 parent a5f999a commit a7ebdb3

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

.github/workflows/publish_release.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ on:
44
release:
55
types:
66
- published
7+
permissions:
8+
id-token: write
9+
contents: read
710
jobs:
811
npm_release:
912
runs-on: ubuntu-latest
@@ -25,8 +28,6 @@ jobs:
2528
run: npm install && npm version "${{ github.ref_name }}" --allow-same-version
2629
- name: Publish packages to npmjs.org
2730
working-directory: ./npm/@fastly
28-
env:
29-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
3031
run: |
3132
for dir in *; do
3233
(

0 commit comments

Comments
 (0)