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

Require approval on PR #162

Merged
merged 1 commit into from
Aug 26, 2023
Merged

Require approval on PR #162

merged 1 commit into from
Aug 26, 2023

Conversation

skwasjer
Copy link
Owner

@skwasjer skwasjer commented Aug 20, 2023

This change ensures we run SonarCloud analysis in context of PR, while having access to repo secrets. However, we must protect from outside PR's 'stealing' our secrets. This problem is solved by requiring external contribs/PR's to be manually approved before this workflow can run, by adding a minimum of 1 reviewer to environment protection rules on env 'external'.

This mechanism is described in this blog:
https://iterative.ai/blog/testing-external-contributions-using-github-actions-secrets

@skwasjer skwasjer changed the title test testing CI Aug 21, 2023
@skwasjer skwasjer force-pushed the bugfix/sonar_stage_fails branch 5 times, most recently from c06e589 to 93dd756 Compare August 26, 2023 11:22
@skwasjer skwasjer force-pushed the bugfix/sonar_stage_fails branch from 93dd756 to 5adaa3b Compare August 26, 2023 11:26
@skwasjer skwasjer force-pushed the bugfix/sonar_stage_fails branch from 5adaa3b to bfc213c Compare August 26, 2023 11:29
…e!!: This requires 'external' deployment environment to have reviewer approval protection rule in repo settings, otherwise, we run the risk of exposing repo secrets to outside PR's.
@skwasjer skwasjer force-pushed the bugfix/sonar_stage_fails branch from bfc213c to e246c74 Compare August 26, 2023 11:30
@skwasjer skwasjer temporarily deployed to internal August 26, 2023 11:31 — with GitHub Actions Inactive
@skwasjer skwasjer temporarily deployed to internal August 26, 2023 11:32 — with GitHub Actions Inactive
@skwasjer skwasjer changed the title testing CI Require approval on PR Aug 26, 2023
@skwasjer skwasjer merged commit 6065d99 into main Aug 26, 2023
@skwasjer skwasjer deleted the bugfix/sonar_stage_fails branch August 26, 2023 11:47
@skwasjer skwasjer added the ci label Dec 21, 2023
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.

1 participant