Skip to content

Commit 08a4ca7

Browse files
committed
test
Signed-off-by: Jakub Jarosz <[email protected]>
1 parent 49e63e5 commit 08a4ca7

File tree

1 file changed

+27
-27
lines changed

1 file changed

+27
-27
lines changed

.github/workflows/mend.yml

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -31,37 +31,37 @@ permissions:
3131

3232

3333
jobs:
34-
check-if-allowed:
35-
if: ${{ ( github.repository_owner == 'nginx' || github.repository_owner == 'nginxinc' ) }}
36-
runs-on: [ ubuntu-latest ]
37-
steps:
38-
- name: Check if we're in the allowed environment
39-
run: |
40-
org_found=0
41-
event_found=0
42-
ref_found=0
43-
ALLOWED_ORGS="nginx nginxinc"
44-
ALLOWED_EVENTS="push"
45-
ALLOWED_REFS="refs/heads/main refs/heads/master refs/heads/stable-1.28"
46-
for org in $ALLOWED_ORGS; do
47-
if [ "$org" == "$GITHUB_REPOSITORY_OWNER" ]; then org_found=1; fi
48-
done
49-
for event in $ALLOWED_EVENTS; do
50-
if [ "$event" == "$GITHUB_EVENT_NAME" ]; then event_found=1; fi
51-
done
52-
for ref in $ALLOWED_REFS; do
53-
if [ "$ref" == "$GITHUB_REF" ]; then ref_found=1; fi
54-
done
55-
if [ $org_found$event_found$ref_found -ne 111 ]; then
56-
echo "Repository owner, event, or ref are not explicitely allowed to use this workflow: $GITHUB_REPOSITORY_OWNER, $GITHUB_EVENT_NAME, $GITHUB_REF"
57-
exit 1
58-
fi
59-
exit 0
34+
# check-if-allowed:
35+
# if: ${{ ( github.repository_owner == 'nginx' || github.repository_owner == 'nginxinc' ) }}
36+
# runs-on: [ ubuntu-latest ]
37+
# steps:
38+
# - name: Check if we're in the allowed environment
39+
# run: |
40+
# org_found=0
41+
# event_found=0
42+
# ref_found=0
43+
# ALLOWED_ORGS="nginx nginxinc"
44+
# ALLOWED_EVENTS="push"
45+
# ALLOWED_REFS="refs/heads/main refs/heads/master refs/heads/stable-1.28"
46+
# for org in $ALLOWED_ORGS; do
47+
# if [ "$org" == "$GITHUB_REPOSITORY_OWNER" ]; then org_found=1; fi
48+
# done
49+
# for event in $ALLOWED_EVENTS; do
50+
# if [ "$event" == "$GITHUB_EVENT_NAME" ]; then event_found=1; fi
51+
# done
52+
# for ref in $ALLOWED_REFS; do
53+
# if [ "$ref" == "$GITHUB_REF" ]; then ref_found=1; fi
54+
# done
55+
# if [ $org_found$event_found$ref_found -ne 111 ]; then
56+
# echo "Repository owner, event, or ref are not explicitely allowed to use this workflow: $GITHUB_REPOSITORY_OWNER, $GITHUB_EVENT_NAME, $GITHUB_REF"
57+
# exit 1
58+
# fi
59+
# exit 0
6060

6161
scan:
6262
name: Mend
6363
runs-on: ubuntu-22.04
64-
needs: check-if-allowed
64+
#needs: check-if-allowed
6565
steps:
6666
- name: Checkout Repository
6767
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2

0 commit comments

Comments
 (0)