fix(ci): pass github packages publish token#5
Conversation
Greptile SummaryPins the reusable Bazel publish workflow to a new SHA ( Confidence Score: 5/5This PR is safe to merge — it makes a minimal, well-scoped CI change with no logic, security, or correctness issues. Only one file changed; the secret is correctly forwarded via the No files require special attention. Important Files Changed
Sequence DiagramsequenceDiagram
participant GH as GitHub Actions (publish.yml)
participant RW as ci-templates/js-bazel-package.yml@c1fbeee
participant NPM as npmjs.com
participant GHPKG as GitHub Packages
GH->>RW: uses (SHA pin c1fbeee)
GH->>RW: secrets.NPM_TOKEN
GH->>RW: secrets.GITHUB_PACKAGES_TOKEN
RW->>NPM: publish (@tinyland-inc/tinyland-activitypub) via NPM_TOKEN
RW->>GHPKG: publish (@tinyland-inc/tinyland-activitypub) via GITHUB_PACKAGES_TOKEN
Reviews (2): Last reviewed commit: "fix(ci): pass github packages publish to..." | Re-trigger Greptile |
| secrets: | ||
| NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
|
|
||
| GITHUB_PACKAGES_TOKEN: ${{ secrets.GITHUB_PACKAGES_TOKEN }} No newline at end of file |
There was a problem hiding this comment.
Missing newline at end of file
The file is missing a trailing newline (\ No newline at end of file in the diff). POSIX and most linters expect text files to end with a newline; some tools that consume the workflow file (e.g., actionlint, yamllint) may warn or error on this.
| GITHUB_PACKAGES_TOKEN: ${{ secrets.GITHUB_PACKAGES_TOKEN }} | |
| GITHUB_PACKAGES_TOKEN: ${{ secrets.GITHUB_PACKAGES_TOKEN }} |
Passes the optional
GITHUB_PACKAGES_TOKENthrough to the reusable Bazel package Publish workflow and updates the reusable workflow pin to the token-override capable revision.This is the follow-up to the GitHub Packages scope fix: the mirror package names are now
@tinyland-inc/*, but existing granular packages can still reject the repoGITHUB_TOKENwithpermission_denied: write_packageunless the package-admin token is passed.Tracking: TIN-713