This repository was archived by the owner on Aug 6, 2026. It is now read-only.
fix: github tokens are stored in plain variables and... in action.js - #186
Merged
Conversation
Automated security fix generated by OrbisAI Security
…ction-v-002-mask-token-in-logs
Contributor
There was a problem hiding this comment.
Pull request overview
This PR aims to mitigate a high-severity secret-exposure risk in the GitHub Action by masking the provided GitHub token so it won’t appear in logs/stack traces when debug logging is enabled.
Changes:
- Register the
tokeninput as a masked secret via@actions/core.setSecret. - Refactor several
info(...)log messages to use string concatenation instead of template literals.
Show a summary per file
| File | Description |
|---|---|
| action.js | Masks the token input via setSecret(token) and adjusts log message construction. |
Review details
Tip
Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
- Files reviewed: 1/1 changed files
- Comments generated: 2
- Review effort level: Lite
stoe
approved these changes
Aug 6, 2026
stoe
disabled auto-merge
August 6, 2026 06:47
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fix high severity security issue in
action.js.Vulnerability
V-002action.js:8Description: GitHub tokens are stored in plain variables and not masked in logs. When debug mode is enabled, error stack traces printed to console.error() may include token values. Error messages could also contain tokens if API errors include them in responses, exposing secrets to anyone with read access to Actions logs.
Evidence
Exploitation scenario: Attacker triggers the action with malicious input to cause an error, enables debug logging via ACTIONS_STEP_DEBUG secret, and extracts the token from the published stack trace in GitHub Actions logs.
Scanner confirmation: multi_agent_ai rule
V-002flagged this pattern.Production code: This file is in the production codebase, not test-only code.
Threat Model Context
This is a Node.js library - vulnerabilities affect downstream consumers who use this package.
Changes
action.jsBehavior Preservation
The change is scoped to 1 file on the vulnerable path; it only tightens handling of untrusted input and leaves valid inputs unaffected.
Automated security fix by OrbisAI Security