Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

ci: fix CI for external contributors #1649

Merged
merged 1 commit into from
Oct 24, 2023

Conversation

willfindlay
Copy link
Contributor

One of our CI jobs recently started relying on a repo secret to log into Docker Hub. This is not strictly necessary, but was done to make the job less flaky, since we were hitting rate limits on Docker's API server. However, this actually broke the workflow for external contributors, since forks do not have access to repo secrets.

It would be a significant security challenge to make this work for external contributors, so I'm leaving this as future work for now. Instead, let's fix the more immediate problem by simply only attempting a login when the PR comes from within the Cilium org.

One of our CI jobs recently started relying on a repo secret to log into Docker Hub. This
is not strictly necessary, but was done to make the job less flaky, since we were hitting
rate limits on Docker's API server. However, this actually broke the workflow for external
contributors, since forks do not have access to repo secrets.

It would be a significant security challenge to make this work for external contributors,
so I'm leaving this as future work for now. Instead, let's fix the more immediate problem
by simply only attempting a login when the PR comes from within the Cilium org.

Signed-off-by: William Findlay <will@isovalent.com>
@willfindlay willfindlay added area/ci Related to CI release-note/ci This PR makes changes to the CI. labels Oct 24, 2023
@willfindlay willfindlay requested a review from tixxdz October 24, 2023 14:30
@willfindlay willfindlay requested a review from a team as a code owner October 24, 2023 14:30
Copy link
Member

@tixxdz tixxdz left a comment

Choose a reason for hiding this comment

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

Much appreciated William ;-)

@mtardy mtardy linked an issue Oct 24, 2023 that may be closed by this pull request
@willfindlay willfindlay merged commit dba2f13 into main Oct 24, 2023
30 checks passed
@willfindlay willfindlay deleted the pr/willfindlay/fix-ci-external-contribs branch October 24, 2023 16:38
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
area/ci Related to CI release-note/ci This PR makes changes to the CI.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CI failure: Packages e2e Tests fail on PRs from forks
3 participants