Skip to content

Commit 8cece75

Browse files
fix: update permissions for GitHub Actions workflow and add integrity verification step
1 parent de9cf6f commit 8cece75

1 file changed

Lines changed: 10 additions & 4 deletions

File tree

.github/workflows/release.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,19 @@ on:
77
# Allows you to run this workflow manually from the Actions tab
88
workflow_dispatch:
99

10-
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
1110
permissions:
12-
contents: write # Needed for semantic-release to push tags, etc
11+
contents: read # For checkout
1312
pages: write # Needed for publishing the documentation to GitHub Pages
14-
issues: write # Needed for semantic-release to create new issues
15-
id-token: write # This is required for requesting the JWT
13+
1614

1715
jobs:
1816
release:
1917
runs-on: macos-latest
18+
permissions:
19+
contents: write # Needed for semantic-release to push tags, etc
20+
issues: write # Needed for semantic-release to create new issues
21+
pull-requests: write # To be able to comment on released pull requests
22+
id-token: write # To enable use of OIDC for trusted publishing and npm provenance
2023

2124
steps:
2225
- name: Checkout
@@ -56,6 +59,9 @@ jobs:
5659
with:
5760
path: docs/
5861

62+
- name: Verify the integrity of provenance attestations and registry signatures for installed dependencies
63+
run: npm audit signatures
64+
5965
- name: Semantic release
6066
run: npx semantic-release
6167
env:

0 commit comments

Comments
 (0)