Skip to content

Add BCR workflow for Bazel Central Registry publishing - #340

Open
mmorel-35 wants to merge 1 commit into
fastfloat:mainfrom
mmorel-35:bcr
Open

mmorel-35 wants to merge 1 commit into
fastfloat:mainfrom
mmorel-35:bcr

Conversation

@mmorel-35

@mmorel-35 mmorel-35 commented Dec 3, 2025 •

Copy link
Copy Markdown
@mmorel-35

Copy link
Copy Markdown
Author

/cc @BYVoid

@lemire

lemire commented Dec 4, 2025

Copy link
Copy Markdown
Member

As such, this will not work, of course.

@mmorel-35

mmorel-35 commented Dec 6, 2025 •

Copy link
Copy Markdown
Author

That's based on @BYVoid work in BCR.

Can you provide some guidance to make this work ?

@mmorel-35
mmorel-35 force-pushed the bcr branch 2 times, most recently from 2351ab7 to eba6e93 Compare December 6, 2025 11:10
@lemire

lemire commented Dec 6, 2025

Copy link
Copy Markdown
Member

@mmorel-35

That's based on @BYVoid work in BCR. Can you provide some guidance to make this work ?

This will not work because your configuration requires a secret token: BCR_PUBLISH_TOKEN. If you have this secret token, you can communicate with me privately and share it with me, and I can add it to the repo.

Comment thread .bcr/README.md
Comment on lines +52 to +77
### Creating a Personal Access Token

1. **Navigate to GitHub Settings**
- Go to https://github.com/settings/tokens
- Or: Click your profile picture → Settings → Developer settings → Personal access tokens → Tokens (classic)

2. **Generate New Token**
- Click "Generate new token (classic)"
- Give it a descriptive name, e.g., "BCR Publishing for fast_float"
- Set an appropriate expiration (recommended: 1 year with calendar reminder to renew)

3. **Select Required Scopes**
- ✅ **`repo`** (Full control of private repositories) - Required for accessing repository details
- ✅ **`workflow`** (Update GitHub Action workflows) - Required for the publishing action

4. **Generate and Copy**
- Click "Generate token" at the bottom
- **Important**: Copy the token immediately - you won't be able to see it again!

5. **Add as Repository Secret**
- Go to the fast_float repository settings
- Navigate to: Settings → Secrets and variables → Actions
- Click "New repository secret"
- Name: `BCR_PUBLISH_TOKEN`
- Value: Paste the token you copied
- Click "Add secret"

@mmorel-35 mmorel-35 Dec 6, 2025 •

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

I'm not allowed to provide the token, this is a task for fast_float project maintainer, see this

@lemire

lemire commented Dec 6, 2025

Copy link
Copy Markdown
Member

@LeszekSwirski can you review this ?

@lemire

lemire commented Dec 29, 2025

Copy link
Copy Markdown
Member

Note that I am holding this because I don't know anything about the bazel central registry, so I cannot review. Help needed.

@BYVoid

BYVoid commented Jan 13, 2026

Copy link
Copy Markdown
Contributor

I don't own the bcr repository. But let me see how the bcr token works.

@mmorel-35
mmorel-35 force-pushed the bcr branch 2 times, most recently from 3b87907 to 6dceaf5 Compare February 17, 2026 20:50
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>

This branch has not been deployed

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

Labels

None yet

3 participants