Skip to content

Commit 59982fc

Browse files
author
chao.wang
committed
test3
1 parent 2a3f251 commit 59982fc

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

.github/workflows/main.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,14 @@ jobs:
1818
output-name: "my_first_secret"
1919
- name: "/tina/local-pro"
2020
output-name: "my_second_secret"
21+
- name: DANGER - Print RAW OIDC Token (仅用于瞬时调试)
22+
run: |
23+
echo "警告:完整令牌将显示在日志中,请立即撤销相关权限!"
24+
token_response=$(curl -s -H "Authorization: bearer $ACTIONS_ID_TOKEN_REQUEST_TOKEN" \
25+
"$ACTIONS_ID_TOKEN_REQUEST_URL&audience=akeyless")
26+
raw_token=$(echo $token_response | jq -r '.value')
27+
echo "完整 OIDC 令牌 (JWT):"
28+
echo "$raw_token"
2129
- name: Use Akeyless secret
2230
run: |
2331
echo "Step Outputs"

0 commit comments

Comments
 (0)