Skip to content
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

Handle pull requests from forks #4762

Merged
merged 1 commit into from
Oct 4, 2023
Merged

Handle pull requests from forks #4762

merged 1 commit into from
Oct 4, 2023

Conversation

mattseddon
Copy link
Member

@mattseddon mattseddon commented Oct 4, 2023

Needed for #4616

The continuous integration workflow will currently always fail for forked pull requests. This is due to secrets not being passed to forks.

Comments inline.

If we start getting a lot of outside contributions then we can revisit.

@mattseddon mattseddon self-assigned this Oct 4, 2023
@mattseddon mattseddon added this to In progress in VS Code Oct 3 via automation Oct 4, 2023
@@ -42,16 +42,25 @@ jobs:

- run: yarn run lint

- uses: paambaati/codeclimate-action@v5.0.0
- name: Run Coverage Report
Copy link
Member Author

Choose a reason for hiding this comment

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

This is the easiest way to bypass uploading a coverage report/storybook for pull requests from a fork. There would be value in getting both reports but the effort required to set that up along with the potential security risk (if we added extra secrets/forget) makes this the logical choice for now IMO.

Copy link
Member Author

Choose a reason for hiding this comment

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

@mattseddon mattseddon marked this pull request as ready for review October 4, 2023 08:37
@mattseddon
Copy link
Member Author

The other route is along the lines of #2644

Copy link
Contributor

@julieg18 julieg18 left a comment

Choose a reason for hiding this comment

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

Looks good!

@codeclimate
Copy link

codeclimate bot commented Oct 4, 2023

Code Climate has analyzed commit af24868 and detected 0 issues on this pull request.

The test coverage on the diff in this pull request is 100.0% (85% is the threshold).

This pull request will bring the total coverage in the repository to 95.0% (0.0% change).

View more on Code Climate.

@mattseddon mattseddon merged commit 9b86cb4 into main Oct 4, 2023
8 checks passed
VS Code Oct 3 automation moved this from In progress to Done Oct 4, 2023
@mattseddon mattseddon deleted the handle-fork branch October 4, 2023 21:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

None yet

3 participants