diff options
| author | Cody Robibero <cody@robibe.ro> | 2021-11-05 17:50:58 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-11-05 17:50:58 -0600 |
| commit | 3c69283e2cf90911e7748c75bc0b6fe92138c2b5 (patch) | |
| tree | 49c1fa5e887fbc0c3b446e1eaecca863941ff706 | |
| parent | b64d9bcd401d68e12b7e0ef2e2fdb55b895e211a (diff) | |
| parent | 07b9ba2bb4aadfea7c177df8e747b3e79409d8af (diff) | |
Merge pull request #6784 from nielsvanvelzen/openapi-head-checkout
Fix OpenAPI workflow fork cloning
| -rw-r--r-- | .github/workflows/openapi.yml | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/.github/workflows/openapi.yml b/.github/workflows/openapi.yml index b81875d2c..ea9188f1b 100644 --- a/.github/workflows/openapi.yml +++ b/.github/workflows/openapi.yml @@ -9,11 +9,13 @@ jobs: openapi-head: name: OpenAPI - HEAD runs-on: ubuntu-latest + permissions: read-all steps: - name: Checkout repository uses: actions/checkout@v2 with: - ref: ${{ github.head_ref }} + ref: ${{ github.event.pull_request.head.ref }} + repository: ${{ github.event.pull_request.head.repo.full_name }} - name: Setup .NET Core uses: actions/setup-dotnet@v1 with: @@ -33,6 +35,7 @@ jobs: name: OpenAPI - BASE if: ${{ github.base_ref != '' }} runs-on: ubuntu-latest + permissions: read-all steps: - name: Checkout repository uses: actions/checkout@v2 |
