Skip to content

Missing provenance on version 7.0.3 #210

Closed

Description

@mnahkies

I notice that version 7.0.2 was published with provenance / trusted publishing from Github actions, but the 7.0.3 release a few days ago was not.

Just wanted to check if this was expected / why this might be?

Image

Activity

  1. mnahkies commented on Mar 2, 2026

    @mnahkies
    Author

    (note: diffing the contents of index.js between Github / NPM package shows no changes, and package.json looks fine too - so it looks like 7.0.3 is a valid release - just surprised by the change back from trusted publishing)

  2. okuryu commented on Mar 2, 2026

    @okuryu
    Collaborator

    It seems version 7.0.3 failed to publish via GitHub Actions for some reason. Seth might have published it manually, which is why the provenance is missing—it certainly wasn't an intentional change to the workflow.

    That said, the package should still install correctly. Are you experiencing any specific issues because of the missing provenance? If it’s causing problems, let me know and I can trigger a 7.0.4 release with provenance included.

  3. mnahkies commented on Mar 2, 2026

    @mnahkies
    Author

    No specific issues - just raised my suspicions was all. I manually verified the release contents matched the GitHub repo which satisfied me it was a valid release.

  4. tats-u commented on Mar 2, 2026

    @tats-u

    Seth might have published it manually

    If it is true, it is a wrong idea once you started to add provenances. You need to ship your package via GitHub Actions always to get provenances.

  5. tats-u commented on Mar 2, 2026

    @tats-u

    npm error You cannot publish over the previously published versions: 7.0.3.

    Could you publish 7.0.4 with the same content through GitHub Actions?

  6. okuryu commented on Mar 2, 2026

    @okuryu
    Collaborator

    published v7.0.4.

  7. tats-u commented on Mar 2, 2026

    @tats-u

    I confirm that a provenance has been successfully added.

  8. tats-u commented on Mar 3, 2026

    @tats-u

    @redonkulus This is probably because you might published 7.0.3 without using GitHub Actions. Please make sure to publish packages via GitHub Actions after the first release with provenance even if the major version of a newly published one is older than that of it. Manually publishing without using GitHub Actions can be confused with the package being compromised by malware.

    https://www.aikido.dev/blog/npm-debug-and-chalk-packages-compromised
    https://socket.dev/blog/rspack-supply-chain-attack

  9. tats-u commented on Mar 3, 2026

    @tats-u

    No apology is necessary, just ensure it doesn't happen again.

  10. CleytonGoncalves commented on Mar 3, 2026

    @CleytonGoncalves

    That said, the package should still install correctly. Are you experiencing any specific issues because of the missing provenance? If it’s causing problems, let me know and I can trigger a 7.0.4 release with provenance included.

    Just an FYI, with pnpm's trustPolicy set (the recommended setting), it blocks the install with the error ERR_PNPM_TRUST_DOWNGRADE  High-risk trust downgrade for "serialize-javascript@7.0.3" (possible package takeover), so the lack of provenance can potentially affect a large userbase.

    Anyway, as a random user, I just wanted to thank you all for this kind of work. Maintainers like you are the real unsung heroes ❤️

  11. redonkulus commented on Mar 3, 2026

    @redonkulus
    Collaborator

    Good points, I manually published it instead of using the actions. That was my mistake to get the fix out. I'll be sure to use actions in the future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions