diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 39c93ed..78e98e5 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -20,6 +20,15 @@ jobs: # Ex: ["18", "20", "22"] ---> ["18.19.1", "20", "22"] version: ["18", "20", "22.4.1"] runs-on: ubuntu-latest + # permissions: + # packages: write + # contents: read + permissions: + contents: read + packages: write + attestations: write + id-token: write + steps: - @@ -29,8 +38,9 @@ jobs: name: Log in to the Container registry uses: docker/login-action@v3 with: - username: ${{ secrets.DOCKER_USERNAME }} - password: ${{ secrets.DOCKER_PASSWORD }} + registry: ghcr.io + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3