Skip to content

ci: Do not persist credentials#11

Merged
bschimke95 merged 1 commit into
mainfrom
KU-5128/go-deps-workflow
Jan 30, 2026
Merged

ci: Do not persist credentials#11
bschimke95 merged 1 commit into
mainfrom
KU-5128/go-deps-workflow

Conversation

@bschimke95

@bschimke95 bschimke95 commented Jan 30, 2026

Copy link
Copy Markdown
Collaborator

actions/checkout is setting up an authorization header that persists. The create-pull-request action then tries to add its own HTTPS authorization header using the BOT_TOKEN secret. GitHub receives two headers and rejects the request with a 400 Bad Request.

This PR replaced ssh-key with token for repository checkout authentication

Copilot AI review requested due to automatic review settings January 30, 2026 13:16

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

This PR enhances security in the Go dependency update workflow by switching from SSH key authentication to token-based authentication and disabling credential persistence.

Changes:

  • Replaced ssh-key with token for repository checkout authentication
  • Added persist-credentials: false to prevent credentials from being stored in git config

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@bschimke95 bschimke95 merged commit a0bb647 into main Jan 30, 2026
13 checks passed
@bschimke95 bschimke95 deleted the KU-5128/go-deps-workflow branch January 30, 2026 13:27
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