Skip to content

Commit 8b93e4b

Browse files
committed
Update GitHub Actions to latest versions
Upgraded various GitHub Actions in ci.yml, docker.yml, and swagger.yml to their latest major versions for improved security and maintenance. Also updated environment variable naming and DockerHub description action usage in docker.yml for consistency and compatibility.
1 parent 9de47ad commit 8b93e4b

File tree

3 files changed

+23
-23
lines changed

3 files changed

+23
-23
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
build:
3131
runs-on: ubuntu-latest
3232
steps:
33-
- uses: actions/checkout@v3
33+
- uses: actions/checkout@v4
3434
- name: github branch
3535
run: |
3636
if [ "${{ github.event.release.target_commitish }}" != "" ]; then
@@ -51,12 +51,12 @@ jobs:
5151
distribution: 'zulu'
5252
java-version: 8
5353
- name: Cache SBT ivy cache
54-
uses: actions/cache@v1
54+
uses: actions/cache@v3
5555
with:
5656
path: ~/.ivy2/cache
5757
key: ${{ runner.os }}-sbt-ivy-cache-${{ hashFiles('project/Build.scala') }}
5858
- name: Cache SBT
59-
uses: actions/cache@v1
59+
uses: actions/cache@v3
6060
with:
6161
path: ~/.sbt
6262
key: ${{ runner.os }}-sbt-${{ hashFiles('project/Build.scala') }}
@@ -85,7 +85,7 @@ jobs:
8585
ports:
8686
- 27017:27017
8787
steps:
88-
- uses: actions/checkout@v3
88+
- uses: actions/checkout@v4
8989
- name: github branch
9090
run: |
9191
if [ "${{ github.event.release.target_commitish }}" != "" ]; then
@@ -130,7 +130,7 @@ jobs:
130130
runs-on: ubuntu-latest
131131
needs: build
132132
steps:
133-
- uses: actions/checkout@v3
133+
- uses: actions/checkout@v4
134134
- name: github branch
135135
run: |
136136
if [ "${{ github.event.release.target_commitish }}" != "" ]; then
@@ -207,7 +207,7 @@ jobs:
207207
runs-on: ubuntu-latest
208208
needs: build
209209
steps:
210-
- uses: actions/checkout@v3
210+
- uses: actions/checkout@v4
211211
- name: github branch
212212
run: |
213213
if [ "${{ github.event.release.target_commitish }}" != "" ]; then

.github/workflows/docker.yml

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ on:
2323

2424
# Certain actions will only run when this is the main repo.
2525
env:
26-
main_REPO: clowder-framework/clowder
26+
MAIN_REPO: clowder-framework/clowder
2727
DOCKERHUB_ORG: clowder
2828

2929
jobs:
@@ -64,7 +64,7 @@ jobs:
6464
PLATFORM: "linux/amd64"
6565

6666
steps:
67-
- uses: actions/checkout@v3
67+
- uses: actions/checkout@v4
6868

6969
# calculate some variables that are used later
7070
- name: variable setup
@@ -115,11 +115,11 @@ jobs:
115115
116116
# setup docker build
117117
- name: Set up QEMU
118-
uses: docker/setup-qemu-action@v2
118+
uses: docker/setup-qemu-action@v3
119119

120120
- name: Set up Docker Buildx
121121
id: buildx
122-
uses: docker/setup-buildx-action@v2
122+
uses: docker/setup-buildx-action@v3
123123

124124
- name: Inspect Builder
125125
run: |
@@ -132,13 +132,13 @@ jobs:
132132
# login to registries
133133
- name: Login to DockerHub
134134
if: env.dockerhub != ''
135-
uses: docker/login-action@v2
135+
uses: docker/login-action@v3
136136
with:
137137
username: ${{ secrets.DOCKERHUB_USERNAME }}
138138
password: ${{ secrets.DOCKERHUB_PASSWORD }}
139139

140140
- name: Login to GitHub Container Registry
141-
uses: docker/login-action@v2
141+
uses: docker/login-action@v3
142142
with:
143143
registry: ghcr.io
144144
username: ${{ github.actor }}
@@ -147,7 +147,7 @@ jobs:
147147
# build the clowder docker images
148148
- name: Build and push ${{ matrix.IMAGE }}-build
149149
if: matrix.IMAGE == 'clowder'
150-
uses: docker/build-push-action@v2
150+
uses: docker/build-push-action@v6
151151
with:
152152
push: true
153153
context: ${{ matrix.FOLDER }}
@@ -164,7 +164,7 @@ jobs:
164164
165165
- name: Build and push ${{ matrix.IMAGE }}-runtime
166166
if: matrix.IMAGE == 'clowder'
167-
uses: docker/build-push-action@v2
167+
uses: docker/build-push-action@v6
168168
with:
169169
push: true
170170
context: ${{ matrix.FOLDER }}
@@ -182,7 +182,7 @@ jobs:
182182
# build the other docker images
183183
- name: Build and push ${{ matrix.IMAGE }}
184184
if: matrix.IMAGE != 'clowder'
185-
uses: docker/build-push-action@v2
185+
uses: docker/build-push-action@v6
186186
with:
187187
push: true
188188
context: ${{ matrix.FOLDER }}
@@ -198,10 +198,10 @@ jobs:
198198
199199
# update README at DockerHub
200200
- name: Docker Hub Description
201-
if: env.dockerhub != '' && matrix.README != '' && github.event_name == 'push' && github.repository == env.main_REPO && env.BRANCH == 'main'
202-
uses: peter-evans/dockerhub-description@v2
203-
env:
204-
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
205-
DOCKERHUB_PASSWORD: ${{ secrets.DOCKERHUB_PASSWORD }}
206-
DOCKERHUB_REPOSITORY: ${{ env.DOCKERHUB_ORG }}/${{ matrix.IMAGE }}
207-
README_FILEPATH: ${{ matrix.README }}
201+
if: env.dockerhub != '' && matrix.README != '' && github.event_name == 'push' && github.repository == env.MAIN_REPO && env.BRANCH == 'main'
202+
uses: peter-evans/dockerhub-description@v4
203+
with:
204+
username: ${{ secrets.DOCKERHUB_USERNAME }}
205+
password: ${{ secrets.DOCKERHUB_PASSWORD }}
206+
repository: ${{ env.DOCKERHUB_ORG }}/${{ matrix.IMAGE }}
207+
readme-filepath : ${{ matrix.README }}

.github/workflows/swagger.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
lint:
2121
runs-on: ubuntu-latest
2222
steps:
23-
- uses: actions/checkout@v3
23+
- uses: actions/checkout@v4
2424

2525
- name: openapi-lint
2626
uses: mbowman100/swagger-validator-action@master

0 commit comments

Comments
 (0)