Skip to content

DEVOPS-1133: Pin GitHub Actions to commit hashes - #747

Open
RomFloreani wants to merge 2 commits into
mainfrom
DEVOPS-1133
Open

DEVOPS-1133: Pin GitHub Actions to commit hashes#747
RomFloreani wants to merge 2 commits into
mainfrom
DEVOPS-1133

Conversation

@RomFloreani

@RomFloreani RomFloreani commented Jul 29, 2026

Copy link
Copy Markdown
Contributor

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:

  • peter-evans/create-or-update-comment@v4 -> @v4.0.0
  • MiraGeoscience/CI-tools/.github/workflows/reusable-jira-pr_actions.yml@v3 -> @v3.9.1
  • actions/checkout@v4 -> @v4.4.0
  • mamba-org/setup-micromamba@v1 -> @v1.11.0
  • actions/checkout@v4 -> @v4.4.0
  • mamba-org/setup-micromamba@v1 -> @v1.11.0
  • codecov/codecov-action@v4 -> @v4.6.0
  • actions/checkout@v4 -> @v4.4.0
  • mamba-org/setup-micromamba@v1 -> @v1.11.0

Copilot AI review requested due to automatic review settings July 29, 2026 16:38
@github-actions github-actions Bot changed the title Pin GitHub Actions to commit hashes DEVOPS-1133: Pin GitHub Actions to commit hashes Jul 29, 2026

Copilot AI left a comment

Copy link
Copy Markdown

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 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/checkout and mamba-org/setup-micromamba references to full semver tags in CI workflows.
  • Updated codecov/codecov-action to v4.6.0 in the Windows pytest workflow.
  • Updated Jira-related workflow references (MiraGeoscience/CI-tools reusable workflow and peter-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.

Comment thread .github/workflows/static-analysis.yml Outdated
Comment on lines +41 to +43
- uses: actions/checkout@v4.4.0
- name: Setup conda env
uses: mamba-org/setup-micromamba@v1
uses: mamba-org/setup-micromamba@v1.11.0
Comment thread .github/workflows/pytest-windows.yml Outdated
Comment on lines +42 to +46
- uses: actions/checkout@v4.4.0
with:
lfs: true
- name: Setup conda env
uses: mamba-org/setup-micromamba@v1
uses: mamba-org/setup-micromamba@v1.11.0
Comment thread .github/workflows/pytest-unix-os.yml Outdated
Comment on lines +43 to +47
- uses: actions/checkout@v4.4.0
with:
lfs: true
- name: Setup conda env
uses: mamba-org/setup-micromamba@v1
uses: mamba-org/setup-micromamba@v1.11.0
Comment thread .github/workflows/pr_jira_actions.yml Outdated
jobs:
call-workflow-pr_jira_actions:
uses: MiraGeoscience/CI-tools/.github/workflows/reusable-jira-pr_actions.yml@v3
uses: MiraGeoscience/CI-tools/.github/workflows/reusable-jira-pr_actions.yml@v3.9.1
Comment on lines 29 to 32
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:
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.

2 participants