Secure some GH Actions and use ubuntu-slim for some workflows#649
Conversation
|
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 :)
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 |
There was a problem hiding this comment.
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>oractions/checkout@<tag> #<tag or link>.
There was a problem hiding this comment.
Yeah, it's pretty neat that dependabot updates the tag too!
Gradually securing our GitHub Actions workflows a bit, tackling some low-hanging fruit for now identified by Zizmor:
Also switching from
ubuntu-latesttoubuntu-slimfor 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.