Skip to content

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

Open
RomFloreani wants to merge 1 commit into
developfrom
DEVOPS-1133
Open

DEVOPS-1133: Pin GitHub Actions to commit hashes#215
RomFloreani wants to merge 1 commit into
developfrom
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:

  • MiraGeoscience/CI-tools/.github/workflows/reusable-jira-issue_to_jira.yml@v3 -> @v3.12.0
  • MiraGeoscience/CI-tools/.github/workflows/reusable-jira-pr_actions.yml@v3 -> @v3.12.0
  • MiraGeoscience/CI-tools/.github/workflows/reusable-python-static_analysis.yml@v3 -> @v3.12.0
  • MiraGeoscience/CI-tools/.github/workflows/reusable-python-pytest.yml@v3 -> @v3.12.0
  • MiraGeoscience/CI-tools/.github/workflows/reusable-python-publish_rattler_package.yml@v3 -> @v3.12.0
  • MiraGeoscience/CI-tools/.github/workflows/reusable-python-publish_pypi_package.yml@v3 -> @v3.12.0
  • MiraGeoscience/CI-tools/.github/workflows/reusable-python-release_conda_assets.yml@v3 -> @v3.12.0
  • MiraGeoscience/CI-tools/.github/workflows/reusable-python-release_pypi_assets.yml@v3 -> @v3.12.0
  • MiraGeoscience/CI-tools/.github/workflows/reusable-zizmor-advanced-security.yml@v3 -> @v3.12.0
  • MiraGeoscience/CI-tools/.github/workflows/reusable-zizmor-annotate.yml@v3 -> @v3.12.0

Workflows added:

  • .github/workflows/dependabot-auto-merge.yml
  • .github/workflows/wip-status.yml

All MiraGeoscience/CI-tools reusable workflows are pinned to 7241532854727d993872b67fc761139b8438615b (v3.12.0).

Copilot AI lite 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
Contributor

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 updates GitHub Actions reusable-workflow references in this repository from the floating @v3 major tag to the more specific @v3.9.1 tag for MiraGeoscience/CI-tools, as a step toward tighter supply-chain pinning of CI dependencies.

Changes:

  • Updated Zizmor reusable workflows to @v3.9.1.
  • Updated Python analysis, deploy (dev/prod), and JIRA automation reusable workflows to @v3.9.1.
  • Standardized CI-tools workflow references across all local workflows touched in this repo.

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 6 comments.

Show a summary per file
File Description
.github/workflows/security_scan.yml Bumps Zizmor reusable workflow references from @v3 to @v3.9.1.
.github/workflows/python_deploy_prod.yml Bumps production release reusable workflows from @v3 to @v3.9.1.
.github/workflows/python_deploy_dev.yml Bumps development publish reusable workflows from @v3 to @v3.9.1.
.github/workflows/python_analysis.yml Bumps analysis and pytest reusable workflows from @v3 to @v3.9.1.
.github/workflows/pr_jira_actions.yml Bumps JIRA PR actions reusable workflow from @v3 to @v3.9.1.
.github/workflows/issue_to_jira.yml Bumps “issue to JIRA” reusable workflow from @v3 to @v3.9.1.
Comments suppressed due to low confidence (4)

.github/workflows/python_analysis.yml:39

  • This still references the reusable workflow by semver tag (@v3.9.1). The PR title/description says uses: should be pinned to a commit hash with a dependabot-readable version comment. Pin to the commit behind v3.9.1 and add # v3.9.1.
    uses: MiraGeoscience/CI-tools/.github/workflows/reusable-python-pytest.yml@v3.9.1

.github/workflows/python_deploy_dev.yml:32

  • This still references the reusable workflow by semver tag (@v3.9.1). The PR title/description says uses: should be pinned to a commit hash with a dependabot-readable version comment. Pin to the commit behind v3.9.1 and add # v3.9.1.
    uses: MiraGeoscience/CI-tools/.github/workflows/reusable-python-publish_pypi_package.yml@v3.9.1

.github/workflows/python_deploy_prod.yml:44

  • This still references the reusable workflow by semver tag (@v3.9.1). The PR title/description says uses: should be pinned to a commit hash with a dependabot-readable version comment. Pin to the commit behind v3.9.1 and add # v3.9.1.
    uses: MiraGeoscience/CI-tools/.github/workflows/reusable-python-release_pypi_assets.yml@v3.9.1

.github/workflows/security_scan.yml:43

  • This still references the reusable workflow by semver tag (@v3.9.1). The PR title/description says uses: should be pinned to a commit hash with a dependabot-readable version comment. Pin to the commit behind v3.9.1 and add # v3.9.1.
    uses: MiraGeoscience/CI-tools/.github/workflows/reusable-zizmor-annotate.yml@v3.9.1

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread .github/workflows/issue_to_jira.yml Outdated
Comment thread .github/workflows/pr_jira_actions.yml Outdated
Comment thread .github/workflows/python_analysis.yml Outdated
Comment thread .github/workflows/python_deploy_dev.yml Outdated
Comment thread .github/workflows/python_deploy_prod.yml Outdated
Comment thread .github/workflows/security_scan.yml Outdated
Copilot AI review requested due to automatic review settings July 29, 2026 17:27

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 6 out of 6 changed files in this pull request and generated no new comments.

@codecov

codecov Bot commented Jul 29, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 86.10%. Comparing base (14c4c81) to head (b65079a).

Additional details and impacted files
@@             Coverage Diff             @@
##           develop     #215      +/-   ##
===========================================
+ Coverage    85.78%   86.10%   +0.31%     
===========================================
  Files           18       18              
  Lines          950      950              
  Branches       126      126              
===========================================
+ Hits           815      818       +3     
+ Misses          99       97       -2     
+ Partials        36       35       -1     

see 1 file with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copilot AI review requested due to automatic review settings August 4, 2026 14:13

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 7 out of 7 changed files in this pull request and generated no new comments.

Suppressed comments (2)

.github/workflows/dependabot-auto-merge.yml:14

  • Add an explicit top-level permissions: {} block (consistent with other workflows in this repo) so the GITHUB_TOKEN defaults to least-privilege unless a job explicitly requests more.
on:
  pull_request_target: # zizmor: ignore[dangerous-triggers] no checkout, no execution of PR-authored code; only trusted event context is read
    types: [opened, synchronize, reopened]

.github/workflows/dependabot-auto-merge.yml:10

  • This new workflow calls a reusable workflow using the mutable ref @DEVOPS-1061, which is not pinned to a commit hash (and lacks a dependabot-readable version comment), contradicting the PR goal of pinning all uses: references. Please replace this with a full commit SHA and a # vX.Y.Z comment.
  call-workflow-dependabot-auto-merge:
    uses: MiraGeoscience/CI-tools/.github/workflows/reusable-dependabot-auto-merge.yml@DEVOPS-1061
    permissions:

Copilot AI review requested due to automatic review settings August 4, 2026 20:53

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 7 out of 7 changed files in this pull request and generated no new comments.

Suppressed comments (1)

.github/workflows/dependabot-auto-merge.yml:9

  • This workflow still references the reusable CI-tools workflow via a mutable ref (@DEVOPS-1061). That contradicts the PR goal of pinning all uses: references to an immutable commit SHA, and also prevents Dependabot from tracking the upstream version via the expected # vX.Y.Z comment.
    uses: MiraGeoscience/CI-tools/.github/workflows/reusable-dependabot-auto-merge.yml@DEVOPS-1061

@github-actions

github-actions Bot commented Sep 3, 2026

Copy link
Copy Markdown

⚠️ Force push detected - Previous Copilot review comments may no longer be relevant to the current code. Please resolve any outdated threads and re-request a Copilot review when ready.

Comment thread geoapps_utils/run.py Fixed
Pin all GitHub Actions and reusable workflow references to immutable
commit hashes, and add the dependabot auto-merge and WIP status workflows.
@github-actions

github-actions Bot commented Sep 3, 2026

Copy link
Copy Markdown

⚠️ Force push detected - Previous Copilot review comments may no longer be relevant to the current code. Please resolve any outdated threads and re-request a Copilot review when ready.

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