Skip to content

Comments

[WIP] Add JavaScript to clear git credentials in config files#17077

Closed
Copilot wants to merge 1 commit intomainfrom
copilot/clear-git-credentials
Closed

[WIP] Add JavaScript to clear git credentials in config files#17077
Copilot wants to merge 1 commit intomainfrom
copilot/clear-git-credentials

Conversation

Copy link
Contributor

Copilot AI commented Feb 20, 2026

  • Create actions/setup/js/clean_git_credentials.cjs - JavaScript that recursively finds all git config files in workspace and /tmp and clears credentials
  • Create actions/setup/js/clean_git_credentials.test.cjs - Tests for the new JavaScript (12 tests passing)
  • Update pkg/workflow/git_configuration_steps.go to use node to run the new JS file instead of bash for the shell script
  • Update Go tests in pkg/workflow/git_config_test.go to check for new JS invocation
  • Recompile all 154 workflow lock files to use node /opt/gh-aw/actions/clean_git_credentials.cjs
  • Run make fmt lint build - all pass
  • Code review - no issues found
  • CodeQL - no security alerts
Original prompt

The JavaScript that clears git credentials should find all git.config files recursively in the workspace and tmp folder and clear them all.


🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.

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