Skip to content

fix(ci): Publish features with the package PAT - #8

Merged
leocavalcante merged 1 commit into
mainfrom
fix/ghcr-package-token
Sep 29, 2026
Merged

leocavalcante merged 1 commit into
mainfrom
fix/ghcr-package-token

Conversation

@leocavalcante

Copy link
Copy Markdown
Member

Summary

  • Point the Features publish step at secrets.GH_TOKEN again. devcontainers/action@v1 has no github-token input; it authenticates with process.env.GITHUB_TOKEN, which this step already sets.
  • Keep the main ref guard, workflow_dispatch, and the existing contents: write / packages: write job permissions from fix(ci): Trim Features permissions and allow manual publish #7. The PAT publishes the package; the job token still needs contents access for checkout.

Why

The opencodeco/devcontainers package was deleted, but install-php-extensions cannot be deleted because a public version has more than 5,000 downloads. That surviving package has no Actions write ACL for GITHUB_TOKEN. The repository GH_TOKEN secret was refreshed with write:packages.

Test plan

  • CI on this PR is green
  • After merge, the Features run on main publishes ghcr.io/opencodeco/devcontainers/install-php-extensions without a 401 or auth-challenge failure
  • Confirm no other packages were deleted or retargeted

The surviving GHCR package rejects the workflow token. The publish action reads GITHUB_TOKEN from the step environment, so point that at the refreshed GH_TOKEN secret.
@leocavalcante leocavalcante added the bug Something isn't working label Sep 29, 2026
@leocavalcante leocavalcante self-assigned this Sep 29, 2026
@leocavalcante
leocavalcante requested a balanced review from Copilot September 29, 2026 20:36

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot review overview

🟢 Approval recommended

The targeted token change matches devcontainers/action@v1 authentication behavior.

Review effort: Balanced
Findings: None

What changed in this PR

Updates Features publishing to authenticate with the package PAT.

Changes:

  • Sets GITHUB_TOKEN to secrets.GH_TOKEN.
  • Preserves existing publish triggers, guard, and permissions.
File Description
.github/​workflows/​features.yml Uses the PAT for Features publishing.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@leocavalcante
leocavalcante merged commit 50fee5a into main Sep 29, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants