Skip to content

ci: pin AliSajid/random-wait-action to a full commit SHA - #4242

Open
Abdellah Ouadoudi (holistis) wants to merge 1 commit into
microsoft:mainfrom
holistis:pin-random-wait-action-sha
Open

Abdellah Ouadoudi (holistis) wants to merge 1 commit into
microsoft:mainfrom
holistis:pin-random-wait-action-sha

Conversation

@holistis

Copy link
Copy Markdown

Reopening the fix from #4221, which a stale-activity bot auto-closed on 2026-10-15 after one gap in follow-up, not because anyone rejected it. The underlying risk is unchanged: the affected workflows carry Azure OIDC secrets in scope, and an unpinned third-party action is a real supply-chain exposure there. No code changes since #4221, same commit.

This action is currently referenced via the `main` branch instead of
a tag or commit SHA:

    uses: AliSajid/random-wait-action@main

Unlike the other third-party actions in this repository, which are at
least pinned to version tags, this reference tracks a mutable branch
head directly. Any future commit pushed to that branch (whether by the
maintainer or through a compromised account/build pipeline) would
execute automatically in these workflows without any review here,
which several already run with `id-token: write` and Azure OIDC
federated-credential secrets (AZURE_CLIENT_ID/TENANT_ID/SUBSCRIPTION_ID,
AOAI_API_KEY_TEST). This is the same class of risk covered by GitHub's
own action-pinning guidance and the supply-chain incidents referenced
in microsoft#4190 and microsoft#4214, but @main is a stricter case than a movable tag
since it does not even require the maintainer to retarget anything.

Fix: pin to the commit currently tagged v2.12.0 on that action's repo,
with a version comment, matching the `<sha> # <tag>` convention already
used by microsoft#4214/microsoft#4207 for the other third-party actions in this repo.

The change is applied both to the six Jinja2 templates in
scripts/readme/ghactions_driver/ that generate these workflows, and to
the 84 already-generated workflow files under .github/workflows/, so
the checked-in files stay consistent with what `python3 readme.py`
would produce. No other lines were touched; verified all 120 workflow
YAML files still parse.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant