Skip to content

Allow moderated secrets usage on PRs from forks #2

Allow moderated secrets usage on PRs from forks

Allow moderated secrets usage on PRs from forks #2

Workflow file for this run

name: Receive PR
on:
pull_request:
branches: [ main ]
jobs:
receive:
runs-on: ubuntu-latest
steps:
- name: Ensure first-party branch or valid label
if: >
!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'"