This is an automated email from the ASF dual-hosted git repository.
morningman pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris-website.git
The following commit(s) were added to refs/heads/master by this push:
new 61c851a1086 [fix](ci) Load Alibaba Cloud OIDC action from a pinned
submodule (#4688)
61c851a1086 is described below
commit 61c851a10863743e6b2d9c15f631225f0b8563aa
Author: Mingyu Chen (Rayner) <[email protected]>
AuthorDate: Mon Nov 23 23:29:08 2026 +0800
[fix](ci) Load Alibaba Cloud OIDC action from a pinned submodule (#4688)
The website OSS OIDC probe fails before a job can start because the ASF
Actions policy rejects the remote
`aliyun/configure-aliyun-credentials-action` reference ([failed
run](https://github.com/apache/doris-website/actions/runs/45191427720)).
Load that same upstream action as a Git submodule at
`.github/actions/configure-aliyun-credentials`, pinned to
`1e5248c8d5d93a8781ac344a68e19a43341e79e6`, and invoke its local path.
Initialize only this submodule before authentication, following the
pattern already used in `apache/doris`. Keep the existing OIDC
parameters, role permissions, masking and credential cleanup.
Validation:
- All 37 `.github/scripts` tests passed. The workflow regression check
now verifies the local reference, initialization order, official
submodule URL and fixed gitlink revision.
- actionlint 1.7.12 passed for the changed workflow.
- Initialized the submodule from a fresh temporary repository using the
workflow's exact command; the pinned action metadata and bundled
main/cleanup entry points are present.
- `git diff --check` passed.
After merge, dispatch a new **Verify Website OSS OIDC** run from
`master` to perform the live cloud checks.
Co-authored-by: morningman <[email protected]>
---
.github/actions/configure-aliyun-credentials | 1 +
.github/scripts/test_website_oss_probe.py | 18 +++++++++++++++++-
.github/workflows/verify-website-oss.yml | 7 ++++++-
.gitmodules | 3 +++
scripts/publish/oss-oidc-probe.md | 9 +++++++++
5 files changed, 36 insertions(+), 2 deletions(-)
diff --git a/.github/actions/configure-aliyun-credentials
b/.github/actions/configure-aliyun-credentials
new file mode 160000
index 00000000000..1e5248c8d5d
--- /dev/null
+++ b/.github/actions/configure-aliyun-credentials
@@ -0,0 +1 @@
+Subproject commit 1e5248c8d5d93a8781ac344a68e19a43341e79e6
diff --git a/.github/scripts/test_website_oss_probe.py
b/.github/scripts/test_website_oss_probe.py
index b08682b9604..59b4f47af1c 100644
--- a/.github/scripts/test_website_oss_probe.py
+++ b/.github/scripts/test_website_oss_probe.py
@@ -48,8 +48,24 @@ class ProbeTests(unittest.TestCase):
self.assertNotIn('secrets.', json.dumps(workflow))
self.assertNotIn('asf-site', json.dumps(job))
for step in job['steps']:
- if 'uses' in step:
+ if 'uses' in step and not step['uses'].startswith('./'):
self.assertRegex(step['uses'], r'@[0-9a-f]{40}$')
+ uses = [step.get('uses', '') for step in job['steps']]
+ local_action = './.github/actions/configure-aliyun-credentials'
+ self.assertIn(local_action, uses)
+ self.assertFalse(any(item.startswith('aliyun/') for item in uses))
+ init = next(index for index, step in enumerate(job['steps'])
+ if step.get('run') == 'git submodule update --init --depth
1 -- .github/actions/configure-aliyun-credentials')
+ self.assertLess(init, uses.index(local_action))
+ gitlink = subprocess.check_output(['git', 'ls-files', '--stage', '--',
+
'.github/actions/configure-aliyun-credentials'], cwd=root, text=True)
+ mode, revision, *_ = gitlink.split()
+ self.assertEqual(mode, '160000')
+ self.assertEqual(revision, '1e5248c8d5d93a8781ac344a68e19a43341e79e6')
+ url = subprocess.check_output(['git', 'config', '-f', '.gitmodules',
'--get',
+
'submodule..github/actions/configure-aliyun-credentials.url'],
+ cwd=root, text=True).strip()
+ self.assertEqual(url,
'https://github.com/aliyun/configure-aliyun-credentials-action.git')
def test_rejects_untrusted_contexts_before_any_cloud_access(self):
for key, value in [('GITHUB_REPOSITORY', 'someone/doris-website'),
diff --git a/.github/workflows/verify-website-oss.yml
b/.github/workflows/verify-website-oss.yml
index 753bd4dd7ca..f3921df4a25 100644
--- a/.github/workflows/verify-website-oss.yml
+++ b/.github/workflows/verify-website-oss.yml
@@ -37,6 +37,11 @@ jobs:
- name: Check repository and non-secret configuration
run: python3 .github/scripts/website_oss_probe.py --check-config
+ # Load the pinned action from this repository, following the Doris
+ # submodule pattern used for Actions outside the ASF allowlist.
+ - name: Initialize the pinned Alibaba Cloud action
+ run: git submodule update --init --depth 1 --
.github/actions/configure-aliyun-credentials
+
- name: Install pinned ossutil
shell: bash
run: |
@@ -53,7 +58,7 @@ jobs:
- name: Authenticate using GitHub OIDC
id: aliyun
- uses:
aliyun/configure-aliyun-credentials-action@1e5248c8d5d93a8781ac344a68e19a43341e79e6
+ uses: ./.github/actions/configure-aliyun-credentials
with:
oidc-provider-arn: ${{ vars.ALIYUN_OIDC_PROVIDER_ARN }}
role-to-assume: ${{ vars.ALIYUN_WEBSITE_ROLE_ARN }}
diff --git a/.gitmodules b/.gitmodules
index 7d9b1daa015..eedd716d0b5 100644
--- a/.gitmodules
+++ b/.gitmodules
@@ -4,3 +4,6 @@
[submodule ".github/actions/aliyun-oss-website-action"]
path = .github/actions/aliyun-oss-website-action
url = https://github.com/jeffreys-cat/aliyun-oss-website-action.git
+[submodule ".github/actions/configure-aliyun-credentials"]
+ path = .github/actions/configure-aliyun-credentials
+ url = https://github.com/aliyun/configure-aliyun-credentials-action.git
diff --git a/scripts/publish/oss-oidc-probe.md
b/scripts/publish/oss-oidc-probe.md
index c4a951ffa7a..88854842d9f 100644
--- a/scripts/publish/oss-oidc-probe.md
+++ b/scripts/publish/oss-oidc-probe.md
@@ -9,6 +9,15 @@ does not build or publish the website.
Configure these repository-level Actions variables. No GitHub Environment or
permanent AccessKey secret is required.
+The Alibaba Cloud credentials action is a Git submodule at
+`.github/actions/configure-aliyun-credentials`, pinned to
+`1e5248c8d5d93a8781ac344a68e19a43341e79e6`. The workflow initializes that
+submodule and uses its local path, following the Doris repository convention
+for actions outside the ASF remote-action allowlist. It never uses
+`git submodule update --remote`; updates require reviewing a new gitlink
commit.
+The action's OIDC inputs, output masking and credential cleanup remain provided
+by that same pinned upstream implementation.
+
| Variable | Value |
| --- | --- |
| `ALIYUN_OIDC_PROVIDER_ARN` | Provider ARN for
`https://token.actions.githubusercontent.com`, audience `sts.aliyuncs.com` |
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]