Skip to content

Secure some GH Actions and use ubuntu-slim for some workflows#649

Merged
weiji14 merged 4 commits into
masterfrom
zizmor_lhf
Apr 7, 2026
Merged

Secure some GH Actions and use ubuntu-slim for some workflows#649
weiji14 merged 4 commits into
masterfrom
zizmor_lhf

Conversation

@weiji14

@weiji14 weiji14 commented Apr 1, 2026

Copy link
Copy Markdown
Member

Gradually securing our GitHub Actions workflows a bit, tackling some low-hanging fruit for now identified by Zizmor:

Also switching from ubuntu-latest to ubuntu-slim for some lightweight workflows (https://github.blog/changelog/2025-10-28-1-vcpu-linux-runner-now-available-in-github-actions-in-public-preview/) to save a bit of energy.

Note: I've also changed some settings at https://github.com/pangeo-data/pangeo-docker-images/settings/actions to tighthen up the permissions, so it'll be harder for breaches in general.

@weiji14 weiji14 self-assigned this Apr 1, 2026
@weiji14 weiji14 marked this pull request as ready for review April 6, 2026 21:36
@weiji14 weiji14 requested review from maxrjones and scottyhq April 7, 2026 05:23
@scottyhq

scottyhq commented Apr 7, 2026

Copy link
Copy Markdown
Member

Cool, had not heard of zizmor before! Agreed this seems like a good idea, especially for repositories like this that build on PRs and do things like slash commands :)

Also switching from ubuntu-latest to ubuntu-slim for some lightweight workflows (https://github.blog/changelog/2025-10-28-1-vcpu-linux-runner-now-available-in-github-actions-in-public-preview/) to save a bit of energy.

great!

- name: Get Latest pangeo-notebook Metapackage Version
id: latest_version
uses: jacobtomlinson/gha-anaconda-package-version@0.1.4
uses: jacobtomlinson/gha-anaconda-package-version@f5d2c85fa7353b97ce642c233499724caa82328d # 0.1.4

@scottyhq scottyhq Apr 7, 2026

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I didn't realize at first that the inline semver (#0.1.4) comment is important:

Dependabot updates the version documentation of GitHub Actions when the comment is on the same line, such as actions/checkout@<commit> #<tag or link> or actions/checkout@<tag> #<tag or link>.

(from https://docs.github.com/en/actions/reference/security/secure-use#keeping-the-actions-in-your-workflows-secure-and-up-to-date)

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Yeah, it's pretty neat that dependabot updates the tag too!

@weiji14 weiji14 merged commit 6f9fda2 into master Apr 7, 2026
5 checks passed
@weiji14 weiji14 deleted the zizmor_lhf branch April 7, 2026 20:29
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