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 permissions on downloaded artifacts: #429

Conversation

jacobweinstock
Copy link
Member

Description

The Github Action actions/upload-artifact@v2 does not preserve file permissions on upload. https://github.com/actions/upload-artifact/tree/v2#permission-loss
This means almost certainly all docker images, before this commit, are not working.
I have validated that with the latest tags, as shown here:

image

It's difficult to test this change. I think this will work but will need it to run in Github actions to actually know.

Why is this needed

Fixes: #

How Has This Been Tested?

How are existing users impacted? What migration steps/scripts do we need?

Checklist:

I have:

  • updated the documentation and/or roadmap (if required)
  • added unit or e2e tests
  • provided instructions on how to upgrade

@codecov
Copy link

codecov bot commented Feb 3, 2021

Codecov Report

Merging #429 (7748361) into master (b24fdf4) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #429   +/-   ##
=======================================
  Coverage   34.34%   34.34%           
=======================================
  Files          46       46           
  Lines        2865     2865           
=======================================
  Hits          984      984           
  Misses       1794     1794           
  Partials       87       87           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b24fdf4...5772933. Read the comment docs.

@jacobweinstock jacobweinstock force-pushed the fix-permission-denied-in-all-images branch from 9a64bda to 7b8fbac Compare February 3, 2021 02:45
The Github Action actions/upload-artifact@v2
does not preserve file permissions on upload.
https://github.com/actions/upload-artifact/tree/v2#permission-loss
This almost certainly means all docker images,
before this commit, are not working.

Signed-off-by: Jacob Weinstock <[email protected]>
@jacobweinstock jacobweinstock merged commit 09b7960 into tinkerbell:master Feb 3, 2021
@jacobweinstock jacobweinstock deleted the fix-permission-denied-in-all-images branch February 3, 2021 04:28
@gianarb
Copy link
Contributor

gianarb commented Feb 3, 2021 via email

@mmlb
Copy link
Contributor

mmlb commented Feb 3, 2021

Hmm agree we should probably do simple --help of the container image probably.

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.

4 participants