[WIP] DEVOPS-1133: Pin GitHub Actions to commit hashes - #747
Conversation
There was a problem hiding this comment.
Pull request overview
This PR aims to harden the repository’s GitHub Actions supply chain by moving uses: references away from floating tags; the current diff updates several workflow files by expanding @vN references to full semver tags (e.g., @v4 → @v4.4.0).
Changes:
- Expanded
actions/checkoutandmamba-org/setup-micromambareferences to full semver tags in CI workflows. - Updated
codecov/codecov-actiontov4.6.0in the Windows pytest workflow. - Updated Jira-related workflow references (
MiraGeoscience/CI-toolsreusable workflow andpeter-evans/create-or-update-comment) to full semver tags.
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 5 comments.
Show a summary per file
| File | Description |
|---|---|
| .github/workflows/static-analysis.yml | Expands checkout/micromamba action refs to full semver tags for static analysis job. |
| .github/workflows/pytest-windows.yml | Expands checkout/micromamba and updates Codecov action ref to full semver tags for Windows tests. |
| .github/workflows/pytest-unix-os.yml | Expands checkout/micromamba action refs to full semver tags for Unix tests. |
| .github/workflows/pr_jira_actions.yml | Expands reusable Jira workflow ref to a full semver tag. |
| .github/workflows/issue_to_jira.yml | Expands comment action ref to a full semver tag for Jira issue linkage. |
Comments suppressed due to low confidence (1)
.github/workflows/pytest-windows.yml:57
- This workflow step still uses
codecov/codecov-action@v4.6.0(a mutable tag). To match the PR goal of pinning actions, switch this to the exact commit SHA with a Dependabot-readable version comment.
if: ${{ success() && matrix.python_ver == '3.10' }}
uses: codecov/codecov-action@v4.6.0
with:
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| fields: '{"components": [{"name": "geoapps"}]}' | ||
| - name: Post JIRA link | ||
| uses: peter-evans/create-or-update-comment@v4 | ||
| uses: peter-evans/create-or-update-comment@v4.0.0 | ||
| with: |
a7f5e57 to
ef216db
Compare
|
|
Pin all GitHub Actions and reusable workflow references to immutable commit hashes, and add the dependabot auto-merge and WIP status workflows.
69f33ae to
908ea74
Compare
|
|
|
These PRs won't have the auto-merge because they need all checks to pass. Blocking required check here: The pinning change itself is complete; this is pre-existing and tracked separately. |
DEVOPS-1133 - pin all GitHub actions and reusable workflows to hash
Expands moving GitHub Actions tags to the full semver tag pointing at the same commit, then pins every
uses:to a commit hash with a dependabot-readable version comment.Tags expanded in this repo:
atlassian/gajira-login@v3.0.1 -> @v3.0.1atlassian/gajira-create@v3.0.1 -> @v3.0.1peter-evans/create-or-update-comment@v4 -> @v4.0.0MiraGeoscience/CI-tools/.github/workflows/reusable-jira-pr_actions.yml@v3 -> @v3.12.0actions/checkout@v4 -> @v4.4.0mamba-org/setup-micromamba@v1 -> @v1.11.0codecov/codecov-action@v4 -> @v4.6.0Workflows added:
.github/workflows/dependabot-auto-merge.yml.github/workflows/wip-status.ymlAll
MiraGeoscience/CI-toolsreusable workflows are pinned to7241532854727d993872b67fc761139b8438615b(v3.12.0).