diff --git a/.github/workflows/docs-preview.yaml b/.github/workflows/docs-preview.yaml index 1856fe34a..7f89c9c70 100644 --- a/.github/workflows/docs-preview.yaml +++ b/.github/workflows/docs-preview.yaml @@ -30,6 +30,9 @@ jobs: - name: Comment Credentials uses: marocchino/sticky-pull-request-comment@v2 + # Only run if PR comes from base repo + # Reason: forks cannot access secrets and this will always fail + if: github.event.pull_request.head.repo.full_name == github.repository with: GITHUB_TOKEN: ${{ github.token }} header: codercom-preview-docs