-
Notifications
You must be signed in to change notification settings - Fork 14
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
Warden promotion workflow #178
Warden promotion workflow #178
Conversation
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 ok. Only a few suggestions and one critical change request related with the checkout functionality
|
||
upgrade-images: | ||
name: Bump warden images references | ||
needs: verify-head-status |
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.
Needs a job that does not exist. Please remove it
run: | | ||
git config --global user.email "${BOT_EMAIL}" | ||
git config --global user.name "${BOT_USERNAME}" | ||
git clone "https://${BOT_USERNAME}:${GH_ENTERPRISE_TOKEN}@github.tools.sap/${BOT_USERNAME}/module-manifests.git" |
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.
Is the internal Github URL, not sensitive data enough to hide it in secret/env?
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 |
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.
The actions/checkout@v4
action by default checkouts to the SHA in the action context that triggered the workflow. In this case, we need to checkout to new SHA created by push in the first job (upgrade-images
). I would suggest to add ref: ${{ github.ref_name }}
arg.
Description
Changes proposed in this pull request: