Skip to content

Fix "Publish to npm" CI failure: wire GITLEAKS_LICENSE and document missing NPM_TOKEN - #14

Merged
VrilLabs merged 1 commit into
masterfrom
copilot/fix-publish-to-npm-job
Aug 15, 2026
Merged

Fix "Publish to npm" CI failure: wire GITLEAKS_LICENSE and document missing NPM_TOKEN#14
VrilLabs merged 1 commit into
masterfrom
copilot/fix-publish-to-npm-job

Conversation

Copilot AI commented Aug 15, 2026

Copy link
Copy Markdown
Contributor

The "Publish to npm" job fails with ENEEDAUTH because NODE_AUTH_TOKEN resolves to empty, and the security-scan job fails because the gitleaks action runs without a license key (required for org repos).

Changes

  • ci.yml — Wire GITLEAKS_LICENSE to the newly added GITLEAKS_KEY org secret:
    env:
      GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
      GITLEAKS_LICENSE: ${{ secrets.GITLEAKS_KEY }}
      GITLEAKS_CONFIG: .gitleaks.toml

Manual action required

The npm-publish.yml workflow is correctly configured — it references secrets.NPM_TOKEN as NODE_AUTH_TOKEN. The secret itself is missing from the repo/org. Add an npm automation token as NPM_TOKEN under Settings → Secrets and variables → Actions to unblock publishing.

Co-authored-by: VrilLabs <271641621+VrilLabs@users.noreply.github.com>
Copilot AI changed the title Fix failing "Publish to npm" GitHub Actions job Fix "Publish to npm" CI failure: wire GITLEAKS_LICENSE and document missing NPM_TOKEN Aug 15, 2026
Copilot AI requested a review from VrilLabs August 15, 2026 05:45
@VrilLabs

Copy link
Copy Markdown
Collaborator

NPM_TOKEN changed to NPM_REGISTRY_TOKEN

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.

Pull request overview

Updates the CI workflow to unblock the security-scan job by providing the required gitleaks license key via Actions secrets, aligning with the org requirement for licensed gitleaks runs.

Changes:

  • Wires GITLEAKS_LICENSE in .github/workflows/ci.yml to the GITLEAKS_KEY secret for the gitleaks action.

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

@VrilLabs
VrilLabs marked this pull request as ready for review August 15, 2026 05:47
@VrilLabs
VrilLabs merged commit 7adb1d3 into master Aug 15, 2026
6 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.

3 participants