-
Notifications
You must be signed in to change notification settings - Fork 11
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
[ LOPS-1538 ] Cache the terminus directory and only add token if not already logged in #17
Conversation
fwiw while I've not dig into how Terminus sessions actually work, I expect this will break for repositories that use multiple machine tokens because it isn't included in your cache key. I'm not sure if it's safe to include it in there either, and unfortunately GHA only supports |
@G-Rath the problem that we're having is people running a bunch of builds and running afoul of our internal API resource limits. How common is using multiple machine tokens for terminus in a CI environment...??? I can't think of a use-case. Also, yes, you are correct. It will break that. |
With Pantheons current permission model I don't think there is a strong usecase, but I do live in hope it'll be improved at some point to allow us security folk to better lockdown our CIs 😉 But I know that won't be an overnight thing so I mainly mention this for completeness - at this point because of how niche the usecase is it's probably not even worth having an input to allow disabling the cache... Something else to consider though is the lifetime of the session - am I right in thinking |
- Update actions/cache to v4 - Add steps for encrypting/decrypting cached session - Separate step just for caching Terminus plugins
- gpg2 is not installed on MacOS by default, openssl is available - clean up some comments
Address "deprecated key derivation used" output
- Remove redundant auth step - Use whoami to validate session - Remove redundant file copying steps - Remove Terminus plugins cache (can add back later if we support installing plugins)
I've integrated the source code from Lullabot's GitHub Action (#18) so that their action could be deprecated (talked with @penyaskito yesterday about this).
You can see a successful run of it here (see embedded steps in primary job and child jobs): https://github.com/the-scranton-branch/Scranton-WordPress/actions/runs/8206546810/job/22454187954 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great!
This also fixes #18 as it incorporates some of the code natively versus referencing it. Will close that PR. |
No description provided.