Skip to content

ci: pin jlumbroso/free-disk-space to a full commit SHA - #4748

Merged
lvhan028 merged 1 commit into
InternLM:mainfrom
kobihikri:harden/pin-free-disk-space
Jul 16, 2026
Merged

ci: pin jlumbroso/free-disk-space to a full commit SHA#4748
lvhan028 merged 1 commit into
InternLM:mainfrom
kobihikri:harden/pin-free-disk-space

Conversation

@kobihikri

Copy link
Copy Markdown
Contributor

What

Pin jlumbroso/free-disk-space@main54081f1… everywhere it's used (15 occurrences across 12
workflows), keeping the tag in a trailing comment.

Why

@main is a moving reference — whatever it points to at run time runs in the job. Several of these jobs
hold publishing credentials:

  • docker.yml / docker_nightly.yml — DockerHub login + push
  • pypi.ymltwine upload with pypi_password

If the action's main were moved (compromise or an accidental change), the new code would run in a job
holding registry / PyPI credentials — the class of issue behind the 2025 tj-actions/changed-files
incident, here with the ability to tamper with published images and wheels.

Scope / safety

  • Behaviour unchanged — the SHA is the current tip of the action's main.
  • Renovate/Dependabot can still bump a SHA pin (the tag comment keeps it readable). DCO signed-off.

Per GitHub's guidance to pin actions to a full-length commit SHA.

AI-assisted; I verified the workflows, the credential exposure, and the pinned SHA myself.

This third-party action is referenced by the mutable @main tag in 12 workflows
(15 occurrences), including the DockerHub-push (docker.yml, docker_nightly.yml)
and PyPI-publish (pypi.yml) jobs. Pin every occurrence to the current main
commit SHA (tag kept in a trailing comment) so a moved tag can't run unreviewed
code alongside the registry / package-index credentials. Behaviour unchanged;
per GitHub's guidance to pin actions to a full-length commit SHA.

Signed-off-by: Kobi Hikri <kobi.hikri@gmail.com>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR hardens GitHub Actions usage by replacing the moving ref jlumbroso/free-disk-space@main with a full commit SHA across multiple workflows, reducing supply-chain risk in jobs that may have access to publishing credentials.

Changes:

  • Pin jlumbroso/free-disk-space from @main to @54081f138730dfa15788a46383842cd2f914a1be in the touched workflows.
  • Keep the previous ref (main) as a trailing comment for readability/auditing.

Reviewed changes

Copilot reviewed 12 out of 12 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
.github/workflows/test_docker.yml Pins jlumbroso/free-disk-space to a full SHA in multiple jobs/steps.
.github/workflows/pypi.yml Pins jlumbroso/free-disk-space to a full SHA in the PyPI publishing workflow.
.github/workflows/mllm_api_eval.yml Pins jlumbroso/free-disk-space to a full SHA.
.github/workflows/linux_x64_gpu.yml Pins jlumbroso/free-disk-space to a full SHA.
.github/workflows/evaluate.yml Pins jlumbroso/free-disk-space to a full SHA.
.github/workflows/docker.yml Pins jlumbroso/free-disk-space to a full SHA in Docker publishing workflows.
.github/workflows/docker_nightly.yml Pins jlumbroso/free-disk-space to a full SHA.
.github/workflows/daily_ete_test.yml Pins jlumbroso/free-disk-space to a full SHA.
.github/workflows/daily_ete_test_5080.yml Pins jlumbroso/free-disk-space to a full SHA.
.github/workflows/daily_ete_test_3090.yml Pins jlumbroso/free-disk-space to a full SHA.
.github/workflows/benchmark.yml Pins jlumbroso/free-disk-space to a full SHA.
.github/workflows/api_eval.yml Pins jlumbroso/free-disk-space to a full SHA.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

steps:
- name: Free disk space
uses: jlumbroso/free-disk-space@main
uses: jlumbroso/free-disk-space@54081f138730dfa15788a46383842cd2f914a1be # main
@lvhan028

Copy link
Copy Markdown
Collaborator

@windreamer Any ideas on how to fix the [test_jetson_docker_image] (https://github.com/InternLM/lmdeploy/actions/runs/29265427834/job/87052526213?pr=4748#logs) failure?

@lvhan028

Copy link
Copy Markdown
Collaborator

overall LGTM.

@lvhan028
lvhan028 merged commit d2446cd into InternLM:main Jul 16, 2026
22 of 24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants