-
Notifications
You must be signed in to change notification settings - Fork 2
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
chore: update scripts to initialize with project_name #34
Conversation
Signed-off-by: Miguel Martinez <[email protected]>
if: github.event_name == 'release' && github.event.action == 'published' | ||
with: | ||
project: ${{ inputs.workflow_project }} |
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.
I am not sure how this ever worked. Did I miss anything cc/ @javirln
@@ -676,7 +676,11 @@ chainloop_attestation_init() { | |||
if [ -n "${CHAINLOOP_WORKFLOW_NAME}" ]; then | |||
WF_NAME_VALUE="--workflow-name ${CHAINLOOP_WORKFLOW_NAME}" | |||
fi | |||
r=$(chainloop attestation init -f --remote-state --output json $CR_VALUE $WF_NAME_VALUE) | |||
PROJECT_NAME_VALUE="" |
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.
@danlishka I might need your help here. I am trying to figure out how the push works.
I think it uses some kind of cache, but I guess that now we will need to update the cache to also take into account the project name, but I am struggling to find that. No rush
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.
ahh no, the cache is unique within the run, ok.
I am wondering then why we are passing the workflow name here
Coverted to draft until I figure out how to make the |
Signed-off-by: Miguel Martinez <[email protected]>
Update labs code to get ready for this change chainloop-dev/chainloop#1375
It adds the requirement of doing
att init
indicating the project name.Note that I also updated the onboarding project to return the project name too.