From d2b765e9d0d139cb4045606f9e99972785e597c4 Mon Sep 17 00:00:00 2001 From: Danielle Pinto Date: Tue, 13 Jan 2026 20:12:36 -0500 Subject: [PATCH] add write permissions for DocCleanup.yml --- .github/workflows/DocCleanup.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/DocCleanup.yml b/.github/workflows/DocCleanup.yml index f8e2302..e6072fc 100644 --- a/.github/workflows/DocCleanup.yml +++ b/.github/workflows/DocCleanup.yml @@ -2,15 +2,18 @@ name: Doc Preview Cleanup on: - pull_request: + pull_request_target: types: [closed] +permissions: + contents: write + jobs: doc-preview-cleanup: runs-on: ubuntu-latest steps: - name: Checkout gh-pages branch - uses: actions/checkout@v2 + uses: actions/checkout@v4 with: ref: gh-pages - name: Delete preview and history + push changes @@ -24,4 +27,4 @@ jobs: git push --force origin gh-pages-new:gh-pages fi env: - PRNUM: ${{ github.event.number }} \ No newline at end of file + PRNUM: ${{ github.event.number }}