Skip to content

Commit

Permalink
chore: fix GITHUB_TOKEN permission
Browse files Browse the repository at this point in the history
  • Loading branch information
TonyRL committed Dec 10, 2024
1 parent cbc312a commit f884467
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build-nightly-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ jobs:
id-token: write
contents: read
attestations: write
packages: write
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down Expand Up @@ -66,9 +67,8 @@ jobs:

- name: Attest
uses: actions/attest-build-provenance@v2
id: attest
with:
subject-name: |
docker.io/${{ vars.DOCKER_USERNAME }}/ttrss
${{ vars.DOCKER_USERNAME }}/ttrss
${{ env.REGISTRY }}/${{ github.repository }}
subject-digest: ${{ steps.push.outputs.digest }}
5 changes: 3 additions & 2 deletions .github/workflows/build-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ jobs:
id-token: write
contents: read
attestations: write
packages: write
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down Expand Up @@ -63,6 +64,7 @@ jobs:

- name: Build dockerfile (with push)
uses: docker/build-push-action@v6
id: push
with:
context: .
push: true
Expand All @@ -74,9 +76,8 @@ jobs:

- name: Attest
uses: actions/attest-build-provenance@v2
id: attest
with:
subject-name: |
docker.io/${{ vars.DOCKER_USERNAME }}/ttrss
${{ vars.DOCKER_USERNAME }}/ttrss
${{ env.REGISTRY }}/${{ github.repository }}
subject-digest: ${{ steps.push.outputs.digest }}

0 comments on commit f884467

Please sign in to comment.