Skip to content

Commit d1fae4a

Browse files
committed
ci: update permissions on certain steps
1 parent 2bb27f4 commit d1fae4a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,8 @@ jobs:
100100
101101
argocd:
102102
if: github.event_name == 'release' || (github.event_name == 'push' && github.ref == 'refs/heads/main')
103+
permissions:
104+
contents: write
103105
runs-on: ubuntu-latest
104106
needs: build
105107
steps:
@@ -115,20 +117,20 @@ jobs:
115117
- name: Trigger workflow in tibiadata-argocd-app-of-apps repo
116118
uses: peter-evans/repository-dispatch@v3
117119
with:
118-
token: ${{ secrets.REPO_ACCESS_TOKEN }}
119120
repository: TibiaData/tibiadata-argocd-app-of-apps
120121
event-type: bump-tibiadata-api-go-image-sha
121122
client-payload: '{"docker_digest": "${{ needs.build.outputs.docker_build_digest }}", "subdomain": "${{ steps.determine_deployment.outputs.subdomain }}"}'
122123

123124
helm-chart:
124125
if: github.event_name == 'release'
126+
permissions:
127+
contents: write
125128
runs-on: ubuntu-latest
126129
needs: build
127130
steps:
128131
- name: Trigger workflow in tibiadata-helm-charts repo
129132
uses: peter-evans/repository-dispatch@v3
130133
with:
131-
token: ${{ secrets.REPO_ACCESS_TOKEN }}
132134
repository: TibiaData/tibiadata-helm-charts
133135
event-type: bump-helm-chart-release
134136
client-payload: '{"chart_name": "${{ github.event.repository.name }}", "release_version": "${{ needs.build.outputs.docker_meta_version }}"}'

0 commit comments

Comments
 (0)