Skip to content

Commit 0d99aa2

Browse files
authored
Merge pull request #4019 from dopplershift/update-actions
Update GitHub Actions configurations
2 parents e6aa9bb + 370795d commit 0d99aa2

20 files changed

Lines changed: 89 additions & 93 deletions

.github/actions/build-docs/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ runs:
5959
6060
- name: Upload docs as artifact
6161
if: ${{ always() && inputs.key != '' }}
62-
uses: actions/upload-artifact@v7
62+
uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
6363
with:
6464
name: ${{ inputs.key }}-docs
6565
path: |

.github/actions/install-conda/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ runs:
1616
using: composite
1717
steps:
1818
- name: Set up Python ${{ inputs.python-version }}
19-
uses: mamba-org/setup-micromamba@v2
19+
uses: mamba-org/setup-micromamba@add3a49764cedee8ee24e82dfde87f5bc2914462 # v2.0.7
2020
with:
2121
# Name is needed for caching
2222
environment-name: CI

.github/actions/install-pypi/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ runs:
2828
using: composite
2929
steps:
3030
- name: Set up Python ${{ inputs.python-version }}
31-
uses: actions/setup-python@v6
31+
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
3232
with:
3333
python-version: ${{ inputs.python-version }}
3434
cache: 'pip'

.github/actions/run-tests/action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,14 +44,14 @@ runs:
4444

4545
- name: Upload test images
4646
if: failure()
47-
uses: actions/upload-artifact@v7
47+
uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
4848
with:
4949
name: ${{ inputs.key }}-images
5050
path: test_output/
5151

5252
- name: Upload coverage artifact
5353
if: ${{ inputs.upload-coverage == 'true' }}
54-
uses: actions/upload-artifact@v7
54+
uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
5555
with:
5656
name: ${{ inputs.key }}
5757
path: coverage.xml

.github/dependabot.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ updates:
66
directory: "/ci"
77
schedule:
88
interval: weekly
9+
cooldown:
10+
default-days: 2
911
# Boto3 makes patch releases daily, so ignore those to reduce the noise
1012
ignore:
1113
- dependency-name: "boto3"
@@ -32,6 +34,8 @@ updates:
3234
directory: "/ci-dev"
3335
schedule:
3436
interval: weekly
37+
cooldown:
38+
default-days: 2
3539
# We don't need to worry about updating to every patch release of dev tools
3640
ignore:
3741
- dependency-name: "*"
@@ -59,6 +63,8 @@ updates:
5963
- "/.github/actions/*"
6064
schedule:
6165
interval: weekly
66+
cooldown:
67+
default-days: 2
6268
open-pull-requests-limit: 10
6369
pull-request-branch-name:
6470
separator: "-"

.github/workflows/assign-milestone.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
name: Assign Latest Milestone
1616
runs-on: ubuntu-slim
1717
steps:
18-
- uses: actions/github-script@v8
18+
- uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
1919
name: Run script
2020
with:
2121
script: |

.github/workflows/automerge-dependabot.yml

Lines changed: 0 additions & 43 deletions
This file was deleted.

.github/workflows/backport-prs.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ jobs:
1010
Backport:
1111
environment:
1212
name: PR Backport
13+
deployment: false
1314
runs-on: ubuntu-slim
1415
if: github.event.pull_request.merged && contains( github.event.pull_request.labels.*.name, 'backport' )
1516
permissions:
@@ -21,7 +22,7 @@ jobs:
2122

2223
steps:
2324
- name: Create App Token
24-
uses: actions/create-github-app-token@v3
25+
uses: actions/create-github-app-token@f8d387b68d61c58ab83c6c016672934102569859 # v3.0.0
2526
id: app-token
2627
with:
2728
app-id: ${{ vars.APP_ID }}
@@ -39,7 +40,7 @@ jobs:
3940
git config --global user.email '${{ steps.get-user-id.outputs.user-id }}+${{ steps.app-token.outputs.app-slug }}[bot]@users.noreply.github.com'
4041
4142
- name: Checkout PR HEAD
42-
uses: actions/checkout@v6
43+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
4344
with:
4445
ref: ${{ github.event.pull_request.head.sha }}
4546
fetch-depth: 100
@@ -60,7 +61,7 @@ jobs:
6061
6162
- name: Create backport PR
6263
id: create-pr
63-
uses: peter-evans/create-pull-request@v8
64+
uses: peter-evans/create-pull-request@c0f553fe549906ede9cf27b5156039d195d2ece0 # v8.1.0
6465
with:
6566
token: ${{ steps.app-token.outputs.token }}
6667
title: '${{ github.event.pull_request.title }} (backport)'
@@ -72,13 +73,13 @@ jobs:
7273
delete-branch: true
7374
labels: 'backported-pr,${{ join(github.event.pull_request.labels.*.name) }}'
7475

75-
- uses: actions-ecosystem/action-remove-labels@v1
76+
- uses: actions-ecosystem/action-remove-labels@2ce5d41b4b6aa8503e285553f75ed56e0a40bae0 # v1.3.0
7677
with:
7778
number: ${{ steps.create-pr.outputs.pull-request-number }}
7879
labels: backport
7980

8081
- name: Comment on completion
81-
uses: actions/github-script@v8
82+
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
8283
with:
8384
script: |
8485
github.rest.issues.createComment({
@@ -90,7 +91,7 @@ jobs:
9091
9192
- name: Comment on error
9293
if: failure()
93-
uses: actions/github-script@v8
94+
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
9495
with:
9596
script: |
9697
const workflow_url = `${process.env.GITHUB_SERVER_URL}/${process.env.GITHUB_REPOSITORY}/actions/runs/${process.env.GITHUB_RUN_ID}`;

.github/workflows/benchmark-pr.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,28 +6,30 @@ on:
66
types: [opened, synchronize, reopened, labeled] #defaults and when labeled
77
workflow_dispatch:
88

9-
109
concurrency:
1110
group: ${{ github.workflow}}-${{ github.head_ref }}
1211
cancel-in-progress: true
1312

1413
jobs:
1514
benchmark:
1615
runs-on: ubuntu-latest
16+
permissions:
17+
contents: read
1718
#sets only to run when the GitHub PR is labeled with 'benchmark'
1819
if: contains(github.event.pull_request.labels.*.name, 'benchmark')
1920
timeout-minutes: 20 #times out after 20 minutes
2021
defaults:
2122
run:
2223
working-directory: ./benchmarks #sets the default working directory to ./benchmarks
2324
steps:
24-
- uses: actions/setup-python@v6 #sets up python with version 3.12
25+
- uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
2526
with:
2627
python-version: "3.12"
2728
- name: Checkout repo
28-
uses: actions/checkout@v6 #checks out repository
29+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
2930
with:
3031
fetch-depth: 0 # Fetch full history
32+
persist-credentials: false
3133
- run: python -m pip install numpy pandas xarray metpy netcdf4
3234
- name: Create data array
3335
run: python data_array_generate.py

.github/workflows/cffcheck.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,15 @@ on:
1515
jobs:
1616
validate:
1717
runs-on: ubuntu-latest
18+
permissions:
19+
contents: read
1820
steps:
1921
- name: Check out a copy of the repository
20-
uses: actions/checkout@v6
22+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
2123
with:
2224
persist-credentials: false
2325

2426
- name: Check validity of CITATION.cff
25-
uses: citation-file-format/cffconvert-github-action@2.0.0
27+
uses: citation-file-format/cffconvert-github-action@4cf11baa70a673bfdf9dad0acc7ee33b3f4b6084 # 2.0.0
2628
with:
2729
args: "--validate"

0 commit comments

Comments
 (0)