Skip to content

Commit f32de31

Browse files
authored
Set audience to sigstore when requesting id token (#145)
Signed-off-by: Samuel Giddins <[email protected]>
1 parent 28c01ee commit f32de31

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/smoketest

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ File.write("smoketest-gem-home/Gemfile", <<~RUBY)
2828
RUBY
2929

3030
id_token ||= Net::HTTP.get_response(
31-
URI(ENV.fetch("ACTIONS_ID_TOKEN_REQUEST_URL")),
31+
URI(ENV.fetch("ACTIONS_ID_TOKEN_REQUEST_URL") + "&audience=#{URI.encode_uri_component("sigstore")}"),
3232
{ "Authorization" => "bearer #{ENV.fetch("ACTIONS_ID_TOKEN_REQUEST_TOKEN")}" },
3333
&:value
3434
).body

0 commit comments

Comments
 (0)