Skip to content

upgrade sdk to v0.1.40 and keep the deprecated function for now#1008

Merged
cpanato merged 4 commits intoocto-sts:mainfrom
cpanato:upgrade-sdk
Aug 26, 2025
Merged

upgrade sdk to v0.1.40 and keep the deprecated function for now#1008
cpanato merged 4 commits intoocto-sts:mainfrom
cpanato:upgrade-sdk

Conversation

@cpanato
Copy link
Collaborator

@cpanato cpanato commented Aug 19, 2025

change in the action: octo-sts/action#34

cmdpdx
cmdpdx previously approved these changes Aug 19, 2025
Comment on lines 77 to 86
scopes := request.GetScopes()
var requestScope string
if len(scopes) == 0 {
// TODO: remove this once we upgrade the action and we can make sure we are in sync with the new way
requestScope = request.GetScope() //nolint: staticcheck
} else {
requestScope = scopes[0]
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

This looks correct now, the previous bump incorrectly was setting requestScope = "" if request.Scopes was empty, but as of [email protected] request.Scope should be populated (if any scopes were passed)

chainguard-dev/sdk@v0.1.38...v0.1.39#diff-7950980d305eb928e9d271d69bf2b8efb940805f57ab3b4ff9abdb206f51fe65R131

@cpanato cpanato marked this pull request as ready for review August 20, 2025 11:36
@cpanato cpanato requested a review from mattmoor August 22, 2025 15:23
@cpanato cpanato merged commit 9bf57f0 into octo-sts:main Aug 26, 2025
12 checks passed
@cpanato cpanato deleted the upgrade-sdk branch August 26, 2025 16:31
cpanato added a commit to octo-sts/action that referenced this pull request Aug 26, 2025
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.

3 participants