From 02c5bd339cf70ae60b92fb1b912b1399c2f38b66 Mon Sep 17 00:00:00 2001 From: Evelyn Gurschler Date: Tue, 1 Oct 2024 18:22:16 +0200 Subject: [PATCH] fix: add github token to generate swagger ui step step is failing with the following error: [@octokit/auth-action] `GITHUB_TOKEN` variable is not set. It must be set on either `env:` or `with:`. --- .github/workflows/publish_api.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/publish_api.yaml b/.github/workflows/publish_api.yaml index 0cd12c2d..3f4a6005 100644 --- a/.github/workflows/publish_api.yaml +++ b/.github/workflows/publish_api.yaml @@ -127,6 +127,7 @@ jobs: with: output: ${{ steps.determine_directory.outputs.DIR_PATH }}/swagger-ui spec-file: ${{ matrix.specs }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Generate Directory Listings uses: jayanta525/github-pages-directory-listing@v4.0.0 with: