-
Notifications
You must be signed in to change notification settings - Fork 171
chore: Update unsupported v2 of go-jose to supported v4 #4439
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
Conversation
Signed-off-by: MacRae Linton <macrael@confidentsecurity.com>
265d6c3 to
a1c31c3
Compare
Signed-off-by: MacRae Linton <macrael@confidentsecurity.com>
ianlewis
left a comment
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.
LGTM
| # Approved packages. | ||
| - "github.com/spf13/cobra" # For CLI | ||
| - "github.com/coreos/go-oidc" # For verifying OIDC tokens. | ||
| - "github.com/go-jose/go-jose/v4" # For testing OIDC tokens |
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.
hmm. How was depguard allowing gopkg.in/square/go-jose.v2 before? 🤔
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.
my guess is it was an old line, never linted? but I really don't know
|
xref #408 |
|
@ianlewis looks like this PR is ready to go? Can you help with merging it? |
|
@sgreene570 Yeah, looks fine. This won't show up on a proper tag until we do a tagged release, which is a bit complicated. Given that no one is really working on this much anymore it might be a while. I think you could import it from latest if you're ok doing that. |
Yup, this is just fine, thanks! |
Summary
We're getting Dependabot warnings about using go-jose v2 in our repo b/c we import slsa-github-generator. This PR updates the import to use the supported v4 of the library and updates go mod. All go tests pass, it looks like go-jose is only used in one line of the tests for GitHub biz.
...
Testing Process
make go-testand everything was clean. This change only affected tests so that feels sufficient....
Checklist