Skip to content

Commit b06d20b

Browse files
committed
github bugs
Signed-off-by: William Woodruff <william@astral.sh>
1 parent b28da22 commit b06d20b

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.github/workflows/test.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,10 @@ jobs:
2626

2727
- name: Set output
2828
id: beacon
29+
# Note: base64 encode the token to avoid GitHub's ridiculous output value
30+
# filtering behavior.
2931
run: |
30-
echo "id-token=$(cat ./oidc-token.txt)" >> ${GITHUB_OUTPUT}
32+
echo "id-token=$(base64 < ./oidc-token.txt)" >> ${GITHUB_OUTPUT}
3133
3234
attest-basic:
3335
name: "Selftest: basic attestation generation"

action.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
# ]
77
# ///
88

9+
import base64
910
import logging
1011
import os
1112
import shlex
@@ -147,6 +148,7 @@ def main() -> None:
147148
dists = _collect_dists(path_patterns)
148149

149150
if id_token := _get_input("id-token"):
151+
id_token = base64.b64decode(id_token).decode("utf-8")
150152
id_token = oidc.IdentityToken(raw_token=id_token)
151153
else:
152154
id_token = _get_id_token()

0 commit comments

Comments
 (0)