Repository navigation
ci: pin AliSajid/random-wait-action to a full commit SHA - #4242
Open
Abdellah Ouadoudi (holistis) wants to merge 1 commit into
Open
Abdellah Ouadoudi (holistis) wants to merge 1 commit into
Abdellah Ouadoudi (holistis) wants to merge 1 commit into
Conversation
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.