Skip to content

chore(ci): Migrate repository check to is-fork check in setup action#6526

Open
davidkna-sap wants to merge 3 commits intomainfrom
davidkna-sap_rm-token-check
Open

chore(ci): Migrate repository check to is-fork check in setup action#6526
davidkna-sap wants to merge 3 commits intomainfrom
davidkna-sap_rm-token-check

Conversation

@davidkna-sap
Copy link
Copy Markdown
Member

@davidkna-sap davidkna-sap commented Apr 24, 2026

Even for forked repos, github.repository evaluates to the parent's repo name, leading to unintended failures.

Comment thread .github/actions/setup/action.yml Outdated
Comment on lines +50 to +51
elif [[ -n "$REGISTRY_TOKEN" ]]; then
echo "url=https://common.repositories.cloud.sap/artifactory/api/npm/build.releases.npm/" >> $GITHUB_OUTPUT
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it would be better to check github.event.pull_request.head.repo.fork => https://docs.github.com/en/webhooks/webhook-events-and-payloads#pull_request (see Properties of pull_request and navigate the tree > head > repo > fork (boolean))

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've migrated the check, hopefully that condition works better.

@davidkna-sap davidkna-sap changed the title chore(ci): Remove repository check from setup action chore(ci): Migrate repository check to is-fork check in setup action Apr 28, 2026
@davidkna-sap davidkna-sap requested a review from marikaner April 28, 2026 10:48
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