Commit a917daf
authored
feat: enable trusted publishing for npm packages (#1491)
## Summary
Implements trusted publishing using OIDC authentication to eliminate
long-lived npm tokens.
## Changes
- Add `id-token: write` permissions to workflows
- Update npm CLI to version 11 (includes trusted publishing support
≥11.5.1)
- Remove `--provenance` flag (auto-generated with trusted publishing)
[Refer](https://docs.npmjs.com/generating-provenance-statements#prerequisites)
- Remove npm-token dependency
## Post-merge: Configure on npmjs.com
Package Settings → Trusted Publisher → GitHub Actions:
- **Organization**: `auth0`
- **Repository**: `auth0-spa-js`
- **Workflow**: `release.yml`
- **Environment**: `release`
## Benefits
- Enhanced security with short-lived tokens
- Automatic provenance attestations
- No token management needed
Follows [OpenSSF trusted publishers
standard](https://repos.openssf.org/trusted-publishers)1 parent c668189 commit a917daf
File tree
3 files changed
+10
-10
lines changed- .github
- actions/npm-publish
- workflows
3 files changed
+10
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
7 | | - | |
8 | 6 | | |
9 | 7 | | |
10 | 8 | | |
| |||
26 | 24 | | |
27 | 25 | | |
28 | 26 | | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
29 | 31 | | |
30 | 32 | | |
31 | 33 | | |
| |||
46 | 48 | | |
47 | 49 | | |
48 | 50 | | |
49 | | - | |
| 51 | + | |
50 | 52 | | |
51 | | - | |
52 | | - | |
| 53 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
19 | | - | |
20 | 18 | | |
21 | 19 | | |
22 | 20 | | |
23 | 21 | | |
24 | 22 | | |
25 | 23 | | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
26 | 27 | | |
27 | 28 | | |
28 | 29 | | |
| |||
66 | 67 | | |
67 | 68 | | |
68 | 69 | | |
69 | | - | |
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
| |||
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
80 | | - | |
| 80 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
38 | 37 | | |
0 commit comments