Skip to content

fix: GHA - add condition to post comment for PRs from the same repo #347

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 27, 2025

Conversation

mfiedorowicz
Copy link
Member

This pull request includes a minor update to the .github/workflows/go-test.yaml file. The change adds a conditional check to ensure that the repository of the pull request head matches the current repository before posting a comment.

  • .github/workflows/go-test.yaml: Added a condition (if: github.event.pull_request.head.repo.full_name == github.repository) to the "Post comment" step to prevent comments from being posted for pull requests originating from forks.

…tory

Signed-off-by: Michal Fiedorowicz <mfiedorowicz@netboxlabs.com>
@mfiedorowicz mfiedorowicz merged commit cd2381c into develop May 27, 2025
6 checks passed
@mfiedorowicz mfiedorowicz deleted the fix-gha-test-fork-prs branch May 27, 2025 12:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants