From c8672c0612f582482980eb21439542e0bc13be20 Mon Sep 17 00:00:00 2001 From: bw2 Date: Tue, 5 Aug 2025 22:00:05 -0400 Subject: [PATCH 1/2] update action permissions --- .github/workflows/apidocs.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/apidocs.yml b/.github/workflows/apidocs.yml index 6c5c862..53d4049 100644 --- a/.github/workflows/apidocs.yml +++ b/.github/workflows/apidocs.yml @@ -13,9 +13,7 @@ jobs: deploy: runs-on: macos-latest permissions: - contents: read - pages: write - id-token: write + contents: write steps: - uses: actions/checkout@v4 @@ -33,7 +31,7 @@ jobs: run: ./apidocs.sh - name: Push API documentation to Github Pages - uses: peaceiris/actions-gh-pages@373f7f263a76c20808c831209c920827a82a2847 # v3.9.3 + uses: peaceiris/actions-gh-pages@v4 with: github_token: ${{ secrets.GITHUB_TOKEN }} publish_dir: ./apidocs From 28bb2f9ab280234fd2e4d766fac0422e1941afbc Mon Sep 17 00:00:00 2001 From: bw2 Date: Tue, 5 Aug 2025 22:02:23 -0400 Subject: [PATCH 2/2] fix lint error --- .github/workflows/apidocs.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/apidocs.yml b/.github/workflows/apidocs.yml index 53d4049..7670de4 100644 --- a/.github/workflows/apidocs.yml +++ b/.github/workflows/apidocs.yml @@ -31,7 +31,7 @@ jobs: run: ./apidocs.sh - name: Push API documentation to Github Pages - uses: peaceiris/actions-gh-pages@v4 + uses: peaceiris/actions-gh-pages@4f9cc6602d3f66b9c108549d475ec49e8ef4d45e # v4.0.0 with: github_token: ${{ secrets.GITHUB_TOKEN }} publish_dir: ./apidocs