Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions .github/workflows/npm-audit-signatures.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: NPM Audit Signatures
on:
push:
branches: [main]
paths:
- 'package.json'
- 'package-lock.json'
pull_request:
paths:
- 'package.json'
- 'package-lock.json'

permissions:
contents: read

jobs:
audit-signatures:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false

- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
with:
node-version-file: .tool-versions

- run: npm ci --ignore-scripts
- run: npm audit signatures --min-release-age=0
2 changes: 2 additions & 0 deletions .npmrc

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't see a min-release-age in any of our other repos. Should we hold off on adding this for now, for consistency?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I had it on auto-merge. 😅 I took that from the issue Bobby had created initially I believe, but you're right. It's not in our other repos. I can rollback the .npmrc change.

Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
; npm 11+ required: npm 10 silently ignores min-release-age
min-release-age=3
2 changes: 1 addition & 1 deletion .tool-versions
Original file line number Diff line number Diff line change
@@ -1 +1 @@
nodejs 22.22.0
nodejs 24.19.0
34 changes: 2 additions & 32 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
"license": "Creative Commons Attribution-NonCommercial 4.0 International",
"private": true,
"engines": {
"node": ">=22.18.0"
"node": ">=24.0.0",
"npm": ">=11 <12"
},
"scripts": {
"docusaurus": "docusaurus",
Expand Down
Loading