Skip to content

Run notarization not from fork pull requests#369

Merged
hannesa2 merged 1 commit intomasterfrom
PullRequestFromForkEnable
Feb 26, 2023
Merged

Run notarization not from fork pull requests#369
hannesa2 merged 1 commit intomasterfrom
PullRequestFromForkEnable

Conversation

@hannesa2
Copy link
Copy Markdown
Contributor

On a fork the variables are missing

On a fork the variables are missing
@ADTC
Copy link
Copy Markdown
Contributor

ADTC commented Feb 26, 2023

Hey, thanks for this! I just sat down to take a look. It's looking really good. I saw the forked PR test done in #368.

@hannesa2 hannesa2 merged commit 163b4d4 into master Feb 26, 2023
@hannesa2 hannesa2 deleted the PullRequestFromForkEnable branch February 26, 2023 07:51
@ADTC
Copy link
Copy Markdown
Contributor

ADTC commented Feb 26, 2023

I noticed the "Prepare artifact" step was skipped in #368 so there were no artifacts uploaded.

My idea was to have two steps, one called "Prepare artifact (origin)" and another "Prepare artifact (fork)", and to run one of them depending on variableSet.

The second one would just run the mv line instead of xcodebuild -exportArchive:

mv GitX.xcarchive/Products/Applications/GitX.app .

Although now that I think about it, we probably shouldn't allow binary artifacts from forked PRs to be available publicly for security reasons. Is that why we aren't including artifacts in the forked PR?

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