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

Update GitHub action metadata to use ghcr.io image #534

Conversation

channelbeta
Copy link
Contributor

Hi, this PR implements what we discussed on #493. You can see my test results here.

Runs 1, 2 and 8 were done using the old mode (Dockerfile). They took around 3 minutes of runner time just to build the images.

Runs 5, 6 and 7 took around 3 seconds to pull the prebuilt image from ghcr.io 🤯

I'm using the latest tag, as requested, and it seems to be working fine with regards to action metadata requirements. However, as you can see by the commit history on the main branch (and also comparing results from workflow runs 7 and 8), I couldn't get
the new workflow to find any secrets on the repo.

I'm raising the PR as a draft while I investigate if this is an issue with the metadata change. If there is something I'm overlooking, please leave a comment here.

@CLAassistant
Copy link

CLAassistant commented May 9, 2022

CLA assistant check
All committers have signed the CLA.

@dustin-decker
Copy link
Contributor

The current arg changes are scanning the whole repo, but the previous are intending to only scan the differences from the default branch, which is what we desire for this action.

@dustin-decker
Copy link
Contributor

It looks like it is working as intended if you revert the arg changes.

The 'runs.image:' argument was using `Dockerfile`. This caused
a Docker build of the trufflehog image every time someone
used this action.

I've changed the argument to use the already published Docker image.
This will speed up the workflows considerably, since it pulls the
image that is already built and available on GitHub's image storage.
@channelbeta channelbeta force-pushed the use-docker-image-on-gh-actions branch from 5379801 to 14ae34c Compare May 9, 2022 15:45
@channelbeta
Copy link
Contributor Author

@dustin-decker run 9 confirms that, since it is a branch that just changed the version of workflow to use my 9.9.9 test release.

I've rebased this PR and it is ready for review.

@channelbeta channelbeta marked this pull request as ready for review May 9, 2022 15:46
Copy link
Contributor

@dustin-decker dustin-decker left a comment

Choose a reason for hiding this comment

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

Thanks for the contribution!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants