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

Add github to check and automatically update the Zarf Injector component upon renovate execution (or other PR) #255

Merged
merged 1 commit into from
Oct 6, 2024

Conversation

mcamick
Copy link
Collaborator

@mcamick mcamick commented Oct 6, 2024

Was messing with renovate and other tooling to see if I could get the Zarf injector to update automatically. Since the file change is in the zarf-config.toml file upstream and not in the release itself or tagging, there's nothing I think renovate can do. So, I think a Github action to pull the file and check is still a decent option. I forked the repo and tested it by changing the values and watching the action change it back on the push to main.

ntwkninja
ntwkninja previously approved these changes Oct 6, 2024
@mcamick
Copy link
Collaborator Author

mcamick commented Oct 6, 2024

Okay, I think I fixed the action logic. I moved the original logic for release into the injector update, so it only triggers on push to main where the zarf.yaml or zarf-config.yaml changes and then the release action triggers on completion of that job. This should address the security concerns and finalize the feature with intended functionality.

manually updating shasums (defenseunicorns#252)

attempt at automating the toml change

attempt at automating the toml change 2

attempt at automating the toml change 3

attempt at automating the toml change 4

attempt at automating the toml change 5

chore(deps): update all dependencies

Update Zarf injector version and shasums from zarf-config.toml

chore(deps): update actions/checkout action to v4

attempt at automating the toml change 6

turn publish back on

Update Zarf injector version and shasums from zarf-config.toml

add check to action if changes are made to avoid commit issues

removed excess changes to renovate file

removed excess changes to renovate file 2

updated to use Github env variables due to action warning deprecating use of set-output

add feature based on Gabe's feedback to checkout the right zarf version to avoid injector to version mismatch

add feature based on Gabe's feedback to checkout the right zarf version to avoid injector to version mismatch but fixed a stupid mistake

add feature based on Gabe's feedback to checkout the right zarf version to avoid injector to version mismatch but fixed a stupid mistake v2

add feature based on Gabe's feedback to checkout the right zarf version to avoid injector to version mismatch but fixed a stupid mistake v3

add feature based on Gabe's feedback to checkout the right zarf version to avoid injector to version mismatch but fixed a stupid mistake v4

remove PR logic from on PR and instead limit it to on push to main

fix release to run after injector fix and add logic to injector to run on changes to the zarf.yaml or zarf-config.yaml

removed stale comment
@mcamick mcamick merged commit 925a1e2 into defenseunicorns:main Oct 6, 2024
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.

2 participants