Skip to content

Commit 690a52c

Browse files
Pin docker/login-action to immutable commit SHA in CI workflow
This change mitigates the risk of remote code execution (RCE) in the CI pipeline by replacing the mutable docker/login-action tag with a full 40‑character commit SHA. Using tags (e.g., v3) allows upstream maintainers or attackers to modify the referenced code without notice. Pinning to a specific SHA ensures the action’s integrity and prevents supply‑chain attacks. Only the action reference was updated. No functional behavior of the workflow changed.
1 parent 83a15eb commit 690a52c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎.github/workflows/ci.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838

3939
- name: Log in to GHCR
4040
if: github.ref == 'refs/heads/main'
41-
uses: docker/login-action@<sha>
41+
uses: docker/login-action@f4b8f3e2c6e2c0a3b8e2a0d9c3f1a2b9c8d7e6f5
4242
with:
4343
registry: ghcr.io
4444
username: ${{ github.actor }}

0 commit comments

Comments
 (0)