diff --git a/.github/workflows/auth.yml b/.github/workflows/auth.yml new file mode 100644 index 00000000..9c9474f3 --- /dev/null +++ b/.github/workflows/auth.yml @@ -0,0 +1,15 @@ +name: Reusable workflow (Authorize) + +on: + workflow_call: + +jobs: + authorize: + runs-on: ubuntu-latest + environment: ${{ github.event_name == 'pull_request_target' && github.event.pull_request.head.repo.full_name != github.repository && 'external' || 'internal' }} + + steps: + - name: Echo + run: | + echo "External pull request approved by code owners" +