Skip to content

Commit 7f10885

Browse files
authored
fix: replace PAT with GITHUB_TOKEN in cleanup-dp workflow (#41699)
1 parent a8a43b2 commit 7f10885

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

.github/workflows/cleanup-dp.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ on:
88
jobs:
99
execute:
1010
runs-on: ubuntu-latest
11+
permissions:
12+
contents: read
13+
pull-requests: read
1114
steps:
1215
# Checkout the code
1316
- uses: actions/checkout@v2
@@ -40,7 +43,7 @@ jobs:
4043
DB_USERNAME: ${{ secrets.DB_USERNAME }}
4144
DB_PASSWORD: ${{ secrets.DB_PASSWORD }}
4245
DB_URL: ${{ secrets.DB_URL }}
43-
GH_TOKEN: ${{ secrets.APPSMITH_DEPLOY_PREVIEW_PAT }}
46+
GH_TOKEN: ${{ github.token }}
4447
DP_EFS_ID: ${{ secrets.APPSMITH_DP_EFS_ID }}
4548

4649
run: /bin/bash ./scripts/cleanup_dp.sh

0 commit comments

Comments
 (0)