Skip to content

Allow moderated secrets usage on PRs from forks #1

Allow moderated secrets usage on PRs from forks

Allow moderated secrets usage on PRs from forks #1

Workflow file for this run

name: Receive PR
on:
pull_request:
branches: [ main ]
jobs:
receive:
runs-on: ubuntu-latest
steps:
- name: DEBUG
run: |
echo "${{ toJSON(github.repository) }}"
echo "${{ toJSON(github.event) }}"
- name: Ensure first-party branch or valid label
if: >
github.repository != github.event.pull_request.head.repo &&
!contains(github.event.pull_request.labels.*.name, 'safe to test')
run: echo "::setFailed::Will not run `pytest` workflow for PR from fork branch without label 'safe to test'"