Skip to content

Conversation

gcatanese
Copy link
Contributor

The Release workflow fails when it is triggered by an external PR because the GitHub token ADYEN_AUTOMATION_BOT_ACCESS_TOKEN cannot be injected during the execution of the GitHub action.

This PR introduces a check to confirm the PR was opened from the same repository (not from an external fork).

@gcatanese gcatanese requested a review from a team as a code owner October 6, 2025 08:17
Copy link

sonarqubecloud bot commented Oct 6, 2025

@gcatanese gcatanese requested a review from Copilot October 6, 2025 08:25
Copy link

@Copilot 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 a conditional check to the GitHub release workflow to prevent it from running on external pull requests. This addresses the issue where the workflow fails when triggered by external PRs due to inability to access the required automation bot token.

  • Added a conditional check to ensure the release job only runs for non-PR events or PRs from the same repository

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@gcatanese gcatanese added the Fix label Oct 6, 2025
@galesky-a galesky-a requested a review from a team October 7, 2025 08:24
@gcatanese gcatanese merged commit 443b27c into main Oct 7, 2025
7 checks passed
@gcatanese gcatanese deleted the workflow-release-check-from-mantainers branch October 7, 2025 08:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants