Skip to content

Commit 0dce357

Browse files
committed
ci: using PAT for accessing argocd repo
1 parent b63d651 commit 0dce357

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,6 @@ jobs:
100100
101101
argocd:
102102
if: github.event_name == 'release' || (github.event_name == 'push' && github.ref == 'refs/heads/main')
103-
permissions:
104-
contents: write
105103
runs-on: ubuntu-latest
106104
needs: build
107105
steps:
@@ -117,6 +115,7 @@ jobs:
117115
- name: Trigger workflow in tibiadata-argocd-app-of-apps repo
118116
uses: peter-evans/repository-dispatch@v3
119117
with:
118+
token: ${{ secrets.REPO_ACCESS_TOKEN }}
120119
repository: TibiaData/tibiadata-argocd-app-of-apps
121120
event-type: bump-tibiadata-api-go-image-sha
122121
client-payload: '{"docker_digest": "${{ needs.build.outputs.docker_build_digest }}", "subdomain": "${{ steps.determine_deployment.outputs.subdomain }}"}'

0 commit comments

Comments
 (0)