Skip to content

Commit 58b60d8

Browse files
committed
fix: maven.yml
1 parent ee1b6b8 commit 58b60d8

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

.github/workflows/maven.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,17 @@ on:
55
tags:
66
- "*"
77

8-
permissions: write-all
9-
108
env:
119
REGISTRY: ghcr.io
1210
IMAGE_NAME: ${{ github.repository }}
1311

12+
permissions: write-all
13+
1414
jobs:
1515
build:
1616
runs-on: ubuntu-latest
17+
permissions:
18+
packages: write
1719
steps:
1820
- uses: actions/checkout@v4
1921
- name: Set Up JDK17
@@ -51,11 +53,11 @@ jobs:
5153
- name: Log in to Docker Hub
5254
uses: docker/login-action@f4ef78c080cd8ba55a85445d5b36e214a81df20a
5355
env:
54-
GITHUB_TOKEN: ${{ secrets.CI_TOKEN }}
56+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5557
with:
5658
registry: ${{ env.REGISTRY }}
5759
username: ${{ github.actor }}
58-
password: ${{ secrets.CI_TOKEN }}
60+
password: ${{ secrets.GITHUB_TOKEN }}
5961

6062
- name: Extract metadata (tags, labels) for Docker
6163
id: meta

0 commit comments

Comments
 (0)