pin third-party actions and scope workflow tokens (#25094)

easimon/maximize-build-space ran from a branch, and the lowercase and manifest actions ran from mutable tags, inside jobs that push images and mint build attestations. The release workflow also ran skopeo from its latest tag with the push credential mounted. The actions are now pinned to commit SHAs with version comments so Dependabot still bumps them, the lowercase action is replaced with ${GITHUB_REPOSITORY,,}, and skopeo is pinned by digest. ci.yml, release.yml, pull_request.yml and stale.yml now declare explicit token permissions instead of relying on the repository default.
This commit is contained in:
Josh Hawkins
2026-11-25 08:16:02 -07:00
committed by GitHub
parent b213d1e73c
commit 717f623b74
5 changed files with 34 additions and 16 deletions
+3 -4
View File
@@ -23,7 +23,7 @@ runs:
# from root and temp-reserve-mb is what actually stays free on root. Keep 4G
# there for setup-qemu/buildx caches in ~/.docker and the tool cache
- name: Maximize build space
uses: easimon/maximize-build-space@master
uses: easimon/maximize-build-space@fc881a613ad2a34aca9c9624518214ebc21dfc0c # v10
with:
root-reserve-mb: 8192
temp-reserve-mb: 4096
@@ -36,9 +36,8 @@ runs:
run: sudo systemctl start docker
shell: bash
- id: lowercaseRepo
uses: ASzc/change-string-case-action@v8
with:
string: ${{ github.repository }}
run: echo "lowercase=${GITHUB_REPOSITORY,,}" >> $GITHUB_OUTPUT
shell: bash
- name: Set up QEMU
uses: docker/setup-qemu-action@v4
- name: Set up Docker Buildx