usfm-grammar
usfm-grammar copied to clipboard
Switch to trusted publishing intead of token based auth in pypi and npm workflows
- https://github.blog/changelog/2025-09-29-strengthening-npm-security-important-changes-to-authentication-and-token-management/
- https://docs.npmjs.com/trusted-publishers
- https://docs.github.com/en/actions/concepts/security/openid-connect#adding-permissions-settings
This requires setting up repo and the github actions files in the npm and pypi accounts and adding below permission to the workflows
permissions:
id-token: write # Required for OIDC
Also, if you could switch out the tree-sitter dependency with the new actively maintained tree-sitter. I think it is backwards compatible but doesn't throw a critical security error. Don't think it should be an issue with the way it's being used but should be an easy fix if backwards compatible.