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

Fix permissions for github release #871

Merged

Conversation

AndreKurait
Copy link
Member

@AndreKurait AndreKurait commented Aug 6, 2024

Description

Fixes github actions for release, the release workflow needed issue permission.
Fixes AndreKurait maintainer (the approval workflow is case sensitive)

  • Category: Bug Fix
  • Why these changes are required? Fix release workflow
  • What is the old behavior before changes and new behavior after changes? Release workflow wouldn't accept andre as approver, it also failed on permission creating issues.

Issues Resolved

MIGRATIONS-1570

Is this a backport? If so, please add backport PR # and/or commits #

Testing

Tested in github actions by triggering workflow, was not able to test anything with assuming the role and after since it requires to be cut on the tag.

Check List

  • New functionality includes testing
    • All tests pass, including unit test, integration test and doctest
  • New functionality has been documented
  • Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Copy link

codecov bot commented Aug 6, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 88.69%. Comparing base (71513cd) to head (a3c033b).
Report is 6 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #871   +/-   ##
=======================================
  Coverage   88.69%   88.69%           
=======================================
  Files          68       68           
  Lines        3778     3778           
=======================================
  Hits         3351     3351           
  Misses        427      427           
Flag Coverage Δ
python-test 88.65% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@AndreKurait AndreKurait force-pushed the FixReleaseDockerPublish branch 2 times, most recently from 3f6e6d4 to 82f635c Compare August 6, 2024 22:57
@AndreKurait AndreKurait marked this pull request as ready for review August 6, 2024 23:03
@@ -12,6 +12,7 @@ env:
permissions:
id-token: write
contents: read
issues: write
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is write a superset of read & write? Presumably we need to do both, right?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Write is what they actually have in their readme to use

Signed-off-by: Andre Kurait <akurait@amazon.com>
Signed-off-by: Andre Kurait <akurait@amazon.com>
@AndreKurait AndreKurait merged commit 4ebadc3 into opensearch-project:main Aug 7, 2024
15 checks passed
@AndreKurait AndreKurait deleted the FixReleaseDockerPublish branch August 7, 2024 13:41
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