Skip to content

Commit 7049ffb

Browse files
Bump actions/checkout from 4 to 5 (#621)
* Bump actions/checkout from 4 to 5 Bumps [actions/checkout](https://github.com/actions/checkout) from 4 to 5. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](actions/checkout@v4...v5) --- updated-dependencies: - dependency-name: actions/checkout dependency-version: '5' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> * Set persist-credentials: false on actions/checkout step Except on jobs where git operations are used in later steps. Xref https://docs.zizmor.sh/audits/#artipacked * Set permissions: {} on github actions workflows Fix zizmor `warning[excessive-permissions]: overly broad permissions`. Xref https://docs.zizmor.sh/audits/#excessive-permissions. --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Wei Ji <23487320+weiji14@users.noreply.github.com>
1 parent 608227a commit 7049ffb

File tree

8 files changed

+38
-8
lines changed

8 files changed

+38
-8
lines changed

.github/workflows/BinderPR.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ on:
55
pull_request_target:
66
types: [opened]
77

8+
permissions: {}
9+
810
jobs:
911
add-binder-links:
1012
runs-on: ubuntu-latest

.github/workflows/Build.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,18 @@ env:
1616
GITHUB_SHA: ${{ github.sha }}
1717
GITHUB_REF: ${{ github.ref }}
1818

19+
permissions: {}
20+
1921
jobs:
2022
base-image:
2123
env:
2224
IMAGE: base-image
2325
runs-on: ubuntu-latest
2426
steps:
2527
- name: Checkout Repository
26-
uses: actions/checkout@v4
28+
uses: actions/checkout@v5
29+
with:
30+
persist-credentials: false
2731

2832
- name: Set Job Environment Variables
2933
run: |
@@ -73,7 +77,9 @@ jobs:
7377
runs-on: ubuntu-latest
7478
steps:
7579
- name: Checkout Repository
76-
uses: actions/checkout@v4
80+
uses: actions/checkout@v5
81+
with:
82+
persist-credentials: false
7783

7884
- name: Set Job Environment Variables
7985
run: |

.github/workflows/ChatOpsDispatcher.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
11
# https://github.com/peter-evans/slash-command-dispatch
22
name: ChatOps Dispatcher
3+
34
on:
45
issue_comment:
56
types: [created]
7+
8+
permissions:
9+
issues: write
10+
611
jobs:
712
slashCommandDispatch:
813
runs-on: ubuntu-latest

.github/workflows/CondaLock.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,13 @@ jobs:
2323

2424
steps:
2525
- name: Checkout Repository
26-
uses: actions/checkout@v4
26+
uses: actions/checkout@v5
2727
with:
2828
token: ${{ secrets.PANGEOBOT_TOKEN }}
2929
# These lines are critical, otherwise Pangeo-bot pushes changes directly to master from PRs!
3030
repository: ${{ github.event.client_payload.pull_request.head.repo.full_name }}
3131
ref: ${{ github.event.client_payload.pull_request.head.ref }}
32+
persist-credentials: false
3233

3334
- name: Install Conda environment with Micromamba
3435
uses: mamba-org/setup-micromamba@v2
@@ -66,12 +67,13 @@ jobs:
6667
contents: write
6768
steps:
6869
- name: Checkout Repository
69-
uses: actions/checkout@v4
70+
uses: actions/checkout@v5
7071
with:
7172
token: ${{ secrets.PANGEOBOT_TOKEN }}
7273
# These lines are critical, otherwise Pangeo-bot pushes changes directly to master from PRs!
7374
repository: ${{ github.event.client_payload.pull_request.head.repo.full_name }}
7475
ref: ${{ github.event.client_payload.pull_request.head.ref }}
76+
persist-credentials: true
7577

7678
# Download all artifacts from previous matrix job
7779
- uses: actions/download-artifact@v5

.github/workflows/PR.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
# Respond to every Pull Request with Pangeo Bot!
22
name: PullRequest
3+
34
on:
45
pull_request_target:
56
types: [opened, reopened]
6-
paths: '**/environment.yml'
7+
paths: "**/environment.yml"
8+
9+
permissions: {}
710

811
jobs:
912
DeployPangeoBot:
@@ -12,7 +15,9 @@ jobs:
1215

1316
steps:
1417
- name: Checkout Repository
15-
uses: actions/checkout@v4
18+
uses: actions/checkout@v5
19+
with:
20+
persist-credentials: false
1621

1722
- name: Add Condalock Comment
1823
uses: peter-evans/create-or-update-comment@v4

.github/workflows/Publish.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ env:
1010
DOCKER_ORG: pangeo
1111
GITHUB_REF: ${{ github.ref }}
1212

13+
permissions: {}
14+
1315
jobs:
1416
matrix-build:
1517
strategy:

.github/workflows/Test.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ env:
1414
GITHUB_SHA: ${{ github.sha }}
1515
GITHUB_REF: ${{ github.ref }}
1616

17+
permissions: {}
18+
1719
jobs:
1820
matrix-build:
1921
strategy:
@@ -31,7 +33,9 @@ jobs:
3133

3234
steps:
3335
- name: Checkout Repository
34-
uses: actions/checkout@v4
36+
uses: actions/checkout@v5
37+
with:
38+
persist-credentials: false
3539

3640
# https://github.com/actions/runner-images/issues/2840#issuecomment-790492173
3741
- name: Free up disk space

.github/workflows/WatchCondaForge.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,18 @@ on:
77
# Run once per day at midnight
88
- cron: "0 0 * * *"
99

10+
permissions: {}
11+
1012
jobs:
1113
check-version:
1214
runs-on: ubuntu-latest
1315
if: github.repository == 'pangeo-data/pangeo-docker-images'
1416

1517
steps:
1618
- name: Checkout Repository
17-
uses: actions/checkout@v4
19+
uses: actions/checkout@v5
20+
with:
21+
persist-credentials: true
1822

1923
- name: Get Latest pangeo-notebook Metapackage Version
2024
id: latest_version

0 commit comments

Comments
 (0)