-
Notifications
You must be signed in to change notification settings - Fork 22
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(ci): ensure body is encoded correctly and can never be recognized as secret for release #1238
chore(ci): ensure body is encoded correctly and can never be recognized as secret for release #1238
Conversation
…ed as secret for release
857c4f1
to
0f5e177
Compare
I don't understand how base64 encoding can solve this error Do you have any insights on that? |
Yes. The issue was that the original body was empty and the JSON Decode only failed because that body was empty. The body was empty because of the warning I linked in which GH actions recognized the release JSON as containing secrets. So I changed it so that only the body part and only base64 encoded, gets passed so that the content basically never gets to get filtered by github actions output protection. This will fix the issue of the "empty body". |
See the link in the issue description. The issue is: Warning: Skip output 'draft-release-notes' since it may contain secret. base64 will hide the thing, which looks like a secret. |
Ok, I understand the issue now. Why is it not enough to only pass the Hiding the |
The base64 is not to hide it. It is to avoid issues related to new lines in the release notes when the body is passed around |
…ed as secret for release (open-component-model#1238) <!-- markdownlint-disable MD041 --> #### What this PR does / why we need it Only passes the body of the release notes and encodes it properly before passing so that we can not run into issues when handling the notes in different steps as an output #### Which issue(s) this PR fixes <!-- Usage: `Fixes #<issue number>`, or `Fixes (paste link of issue)`. --> https://github.com/open-component-model/ocm/actions/runs/12690118935/job/35370314340#step:13:2 failed fix open-component-model/ocm-project#363
…ed as secret for release (#1238) (#1239) <!-- markdownlint-disable MD041 --> #### What this PR does / why we need it Only passes the body of the release notes and encodes it properly before passing so that we can not run into issues when handling the notes in different steps as an output #### Which issue(s) this PR fixes <!-- Usage: `Fixes #<issue number>`, or `Fixes (paste link of issue)`. --> https://github.com/open-component-model/ocm/actions/runs/12690118935/job/35370314340#step:13:2 failed fix open-component-model/ocm-project#363 <!-- markdownlint-disable MD041 --> #### What this PR does / why we need it #### Which issue(s) this PR fixes <!-- Usage: `Fixes #<issue number>`, or `Fixes (paste link of issue)`. -->
What this PR does / why we need it
Only passes the body of the release notes and encodes it properly before passing so that we can not run into issues when handling the notes in different steps as an output
Which issue(s) this PR fixes
https://github.com/open-component-model/ocm/actions/runs/12690118935/job/35370314340#step:13:2 failed
fix open-component-model/ocm-project#363