Skip to content

Add provenance attestation for GitHub Actions and GitLab CI #21586

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

jakeboone02
Copy link
Contributor

What does this PR do?

Adds provenance attestation for GitHub Actions and GitLab CI with a new --provenance flag for bun publish.

How did you verify your code works?

Added automated tests for bun publish.

I don't actually have a working dev environment for Bun right now, I just had Claude Code generate the code+tests and then reviewed it before committing. Also I don't think I could get a dev build of Bun into a CI environment without getting a PR build first. Anyway, well see how this goes...

@typed-sigterm
Copy link

This closes #18611

@RiskyMH
Copy link
Member

RiskyMH commented Aug 5, 2025

In ~1hr you can run bunx bun-pr 21586 to get a debug version for this to try out in github actions. Ngl this seems scarily simple lol.

Copy link
Member

@RiskyMH RiskyMH left a comment

Choose a reason for hiding this comment

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

Some build fails

Not sure how this one was caused though

vendor/zig/lib/std/fmt.zig:140:13: error: missing opening {
            @compileError("missing opening {");
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
referenced by:
    print__anon_399482: vendor/zig/lib/std/io/Writer.zig:24:26

https://buildkite.com/bun/bun/builds/22130

@jakeboone02 jakeboone02 requested a review from RiskyMH August 5, 2025 15:08
@jakeboone02
Copy link
Contributor Author

@RiskyMH could you approve the workflows to run again?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implement bun publish --provenance as in npm
3 participants