Skip to content

Commit 68ea74d

Browse files
upgrade GitHub action steps and add token permission for publishing images
1 parent 7327eec commit 68ea74d

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

.github/workflows/build-publish.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ env:
1414
jobs:
1515
build:
1616
runs-on: ubuntu-latest
17+
permissions:
18+
contents: read
19+
packages: write
20+
id-token: write
1721

1822
strategy:
1923
matrix:
@@ -24,17 +28,20 @@ jobs:
2428

2529
steps:
2630
- name: Checkout repository
27-
uses: actions/checkout@v3
31+
uses: actions/checkout@v4
32+
33+
- name: Set up Docker Buildx
34+
uses: docker/[email protected]
2835

2936
- name: Build
3037
run: make --no-builtin-rules build R_VERSION=${{ matrix.r_version }}
3138

3239
- name: Unit Tests
3340
run: make --no-builtin-rules test R_VERSION=${{ matrix.r_version }}
3441

35-
- name: Log into registry
42+
- name: Log into registry ${{ env.REGISTRY }}
3643
if: github.event_name != 'pull_request'
37-
uses: docker/login-action@v2.0.0
44+
uses: docker/login-action@v3.0.0
3845
with:
3946
registry: ${{ env.REGISTRY }}
4047
username: ${{ github.actor }}

0 commit comments

Comments
 (0)