CI: pin third-party GitHub Actions to commit SHAs (write-scoped jobs first)
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 72/100
Research direction
Start by reading .github/workflows/containers.yml and .github/workflows/release.yml, focusing on jobs with write permissions and their uses: references. Pin third-party actions to full 40-character commit SHAs and retain each version tag in a trailing comment; decide whether to include actions/* and github/* as the issue requests. The work is done when the targeted references are pinned and workflow validation passes; the optional CI check can be considered separately.
Written by the indexing model from the issue text.
Description
Every action in .github/workflows/ is referenced by tag (azure/[email protected], docker/login-action@v4, aquasecurity/[email protected], …). A tag can be moved by the action's owner, so a compromised or re-pointed tag would run in our jobs, including the ones that hold packages: write or contents: write:
containers.yml: the image build/push jobs (docker/login-action,docker/build-push-action,docker/bake-action,docker/metadata-action,docker/setup-buildx-action,docker/setup-qemu-action) and, since R-9 (#196),chart-push(azure/[email protected], which resolves to9bc31f4ebc9c6b171d7bfbaa5d006ae7abdb4310today).release.yml: the release job.
An automated security review flagged the chart-push reference after #196 merged. It was left as a tag there because that is the convention every other reference in the repo follows; changing one reference would not change the exposure.
Task
- Pin every third-party action (everything outside
actions/*andgithub/*; decide whether to pin those too) to a full 40-character commit SHA with the tag in a trailing comment, e.g.uses: azure/setup-helm@9bc31f4ebc9c6b171d7bfbaa5d006ae7abdb4310 # v5.0.1. Start with the jobs that hold write permissions. - Dependabot's
github-actionsecosystem is already configured and updates SHA pins with their comments. - Optionally add a check (actionlint cannot do this; a small script or
zizmor) so a new tag-pinned third-party action fails CI.
Lead-only steps
None.
- Dominant language
- Python
- Stars
- 0
- Forks
- 2
- Avg merge
- 8h 26m
- Merged PRs (30d)
- 47
Getting set up
- Ships a Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from TechTraverse/stac-higher
-
ci
Difficulty 1/5 Under an hour Newbie friendliness 85/100
TechTraverse/stac-higher#261 ·
Maintainers usually reply within 1 day
-
ready
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
TechTraverse/stac-higher#258 ·
Maintainers usually reply within 1 day
-
Error messages hide the server's reason: users see only '400 Bad Request'Possibly taken @aman-code-io claimed this 3 days ago. Openbug good first issue ready
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
TechTraverse/stac-higher#232 · 1 comment ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
TechTraverse/stac-higher#225 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
TechTraverse/stac-higher#216 ·
Maintainers usually reply within 1 day
All issues in TechTraverse/stac-higher
Similar issues
-
docs(contributing): the two things that silently block a PRPossibly taken A pull request linked to this issue is open or already merged. Openavailable documentation good first issue
Difficulty 1/5 1-3 hours Newbie friendliness 95/100
Nixitov/Riptide-Native#944 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
JTHCode/secretguard#24 ·
Maintainers usually reply within 1 day
-
area: middleware documentation good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
enhancement good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
Maintainers usually reply within 1 day
-
good first issue
Difficulty 1/5 Under an hour Newbie friendliness 95/100
omarelshamy25x/shamy-hijri#63 ·
Maintainers usually reply within 1 day