From 4ee40a809d807e3175596e0d8ffb6ace578a11af Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Tue, 4 Jun 2024 12:34:05 -0400 Subject: [PATCH] Testing some stuff Signed-off-by: Simo Sorce --- .github/workflows/test.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 00000000..26fa3044 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,19 @@ +--- +name: Faux Scan + +on: + pull_request_target: + branches: ["main"] + types: + - synchronize + - labeled + +jobs: + on-labeled-pr: + if: ${{ contains(github.event.action, 'labeled') && contains(github.event.*.labels.*.name, 'covscan-ok') }} + name: Fail PR + env: + GITHUB_CONTEXT: ${{ toJson(github) }} + run: | + echo "$GITHUB_CONTEXT" \ + false