Skip to content

fix(ci): add environment declaration for release-please secret access#27

Merged
deviantintegral merged 3 commits intomainfrom
copilot/fix-release-please-job-failure
Feb 26, 2026
Merged

fix(ci): add environment declaration for release-please secret access#27
deviantintegral merged 3 commits intomainfrom
copilot/fix-release-please-job-failure

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Feb 26, 2026

PR #26 switched the release-please token to secrets.RELEASE_PLEASE_TOKEN but the secret is configured as an environment secret under the main environment. Without declaring environment: main on the job, the secret is inaccessible, causing every Release workflow run on main to fail:

release-please failed: Input required and not supplied: token

Add environment: main to the release-please job so it can access the environment secret:

release-please:
  runs-on: ubuntu-24.04
  environment: main

✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

When secrets.RELEASE_PLEASE_TOKEN is not configured, fall back to
github.token so the release-please job doesn't fail with
"Input required and not supplied: token".

Co-authored-by: deviantintegral <255023+deviantintegral@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix release-please job failure on main branch fix(ci): restore github.token fallback for release-please Feb 26, 2026
@deviantintegral
Copy link
Copy Markdown
Owner

@copilot I think the problem is that we’re using an environment secret for the environment main and need to declare that in the workflow files.

…ccess

The RELEASE_PLEASE_TOKEN is an environment secret under the 'main'
environment. The job needs to declare this environment to access it.
Remove the github.token fallback since the secret is configured.

Co-authored-by: deviantintegral <255023+deviantintegral@users.noreply.github.com>
Copy link
Copy Markdown
Contributor Author

Copilot AI commented Feb 26, 2026

@copilot I think the problem is that we’re using an environment secret for the environment main and need to declare that in the workflow files.

Added environment: main to the release-please job and removed the github.token fallback in 8121695.

Copilot AI changed the title fix(ci): restore github.token fallback for release-please fix(ci): add environment declaration for release-please secret access Feb 26, 2026
@deviantintegral deviantintegral marked this pull request as ready for review February 26, 2026 03:09
@deviantintegral deviantintegral enabled auto-merge (squash) February 26, 2026 03:09
@deviantintegral deviantintegral merged commit 3138bf8 into main Feb 26, 2026
7 checks passed
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.

2 participants