Skip to content

Conversation

behnazh-w
Copy link
Member

@behnazh-w behnazh-w commented Apr 17, 2023

Based on Scorecard report we should avoid downloadThenRun patterns because we won't have a chance to review the download script before running it.

Also see this discussion.

Signed-off-by: behnazh-w <behnaz.hassanshahi@oracle.com>
@behnazh-w behnazh-w requested a review from tromai as a code owner April 17, 2023 04:59
@oracle-contributor-agreement oracle-contributor-agreement bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Apr 17, 2023
rm -f "$CHECKSUMS"

# Check if artifact is valid.
if [ "$EXPECTED" == "$SYFT_DIGEST" ]; then
Copy link
Member

Choose a reason for hiding this comment

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

Should we perform this checking before extracting the tarball as we haven't trusted it yet?

Copy link
Member Author

@behnazh-w behnazh-w Apr 17, 2023

Choose a reason for hiding this comment

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

Should we perform this checking before extracting the tarball as we haven't trusted it yet?

Good point. See commit 46141d6.

Signed-off-by: behnazh-w <behnaz.hassanshahi@oracle.com>
@behnazh-w behnazh-w merged commit b009eb0 into staging Apr 17, 2023
@behnazh-w behnazh-w deleted the fix-insecure-download branch April 19, 2023 05:09
@behnazh-w behnazh-w added this to the Release v0.1.0 milestone Apr 21, 2023
@behnazh-w behnazh-w self-assigned this Apr 21, 2023
art1f1c3R pushed a commit that referenced this pull request Nov 29, 2024
Signed-off-by: behnazh-w <behnaz.hassanshahi@oracle.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OCA Verified All contributors have signed the Oracle Contributor Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants