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

fix: fix failing docker CI due to permission issues on PRs #94

Merged
merged 4 commits into from
Feb 7, 2024

Conversation

MSevey
Copy link
Member

@MSevey MSevey commented Feb 5, 2024

Overview

Closes #93

This change skips running the dockerhub and scaleway runs when it is a PR.
We use org level secrets for logging into dockerhub and scaleway, and these secretes are only accessible by native branches, or users with write access.
This means that on PRs from forks or non team members, the runs would fail.
These still pass on main on merge, because at that point, the permission issue is no longer present.

Additional this change removes the appended hash to the action run, which causes issues with linking the action to the branch protection rules.

Verified and tested: https://github.com/celestiaorg/.github/actions/runs/7790602743

Checklist

  • New and updated code has appropriate documentation
  • New and updated code has new and/or updated testing
  • Required CI checks are passing
  • Visual proof for any user facing features like CLI or documentation updates
  • Linked issues closed with keywords

@MSevey MSevey requested a review from a team as a code owner February 5, 2024 20:42
@MSevey MSevey changed the title chore: add comments to trigger PR bug: fix failing docker CI due to permission issues on PRs Feb 5, 2024
@MSevey MSevey self-assigned this Feb 5, 2024
@rootulp
Copy link
Contributor

rootulp commented Feb 5, 2024

[nit] I think the PR title may have meant to use the conventional commit prefix fix: instead of bug:. Ref: https://www.conventionalcommits.org/en/v1.0.0/

rootulp
rootulp previously approved these changes Feb 5, 2024
Copy link
Contributor

@rootulp rootulp left a comment

Choose a reason for hiding this comment

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

Untested but roughly LGTM

.github/workflows/dockerfile_workflow_test.yaml Outdated Show resolved Hide resolved
.github/workflows/reusable_dockerfile_pipeline.yml Outdated Show resolved Hide resolved
@MSevey MSevey changed the title bug: fix failing docker CI due to permission issues on PRs fix: fix failing docker CI due to permission issues on PRs Feb 5, 2024
Co-authored-by: Rootul P <rootulp@gmail.com>
Bidon15
Bidon15 previously approved these changes Feb 6, 2024
@MSevey MSevey enabled auto-merge (squash) February 6, 2024 15:40
@MSevey MSevey requested a review from Bidon15 February 6, 2024 15:40
Copy link

@sysrex sysrex left a comment

Choose a reason for hiding this comment

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

lgtm

@MSevey MSevey merged commit 813fe47 into celestiaorg:main Feb 7, 2024
20 checks passed
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.

docker-build fails for DockerHub and Scaleway on PRs from forks
4 participants