Skip to content

Comments

ci: skip Docker registry login on pull request events#860

Merged
appleboy merged 1 commit intomasterfrom
githucb
Dec 13, 2025
Merged

ci: skip Docker registry login on pull request events#860
appleboy merged 1 commit intomasterfrom
githucb

Conversation

@appleboy
Copy link
Owner

  • Add conditional checks to prevent Docker registry login steps from running on pull request events

- Add conditional checks to prevent Docker registry login steps from running on pull request events

Signed-off-by: appleboy <appleboy.tw@gmail.com>
Copilot AI review requested due to automatic review settings December 13, 2025 05:15
Copy link

Copilot AI left a comment

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 adds conditional checks to skip Docker registry authentication steps when the workflow runs on pull request events, improving security by not exposing registry credentials unnecessarily.

  • Added if: github.event_name != 'pull_request' condition to both Docker Hub and GitHub Container Registry login steps
  • Aligns with the existing conditional push logic that already prevents image pushing on pull requests

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

@appleboy appleboy merged commit c506f67 into master Dec 13, 2025
18 of 19 checks passed
@appleboy appleboy deleted the githucb branch December 13, 2025 06:02
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.

1 participant