File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : PR Linting
2+
3+ on :
4+ pull_request :
5+ types : [opened, reopened, synchronize]
6+
7+ jobs :
8+ linting :
9+ runs-on : ubuntu-latest
10+ name : MegaLinter Validation
11+ steps :
12+ - name : Checkout repository
13+ uses : actions/checkout@v4
14+
15+ - name : MegaLinter
16+ uses : oxsecurity/megalinter/flavors/documentation@v9
Original file line number Diff line number Diff line change 11name : PR Validation
22
33on :
4- pull_request :
4+ pull_request_target :
55 types : [opened, reopened, synchronize]
6- push :
7- branches :
8- - master
6+ branches : [master]
97
108jobs :
11- linting :
12- runs-on : ubuntu-latest
13- name : MegaLinter Validation
14- steps :
15- - name : Checkout repository
16- uses : actions/checkout@v4
17-
18- - name : MegaLinter
19- uses : oxsecurity/megalinter/flavors/documentation@v9
20-
219 codegen-validation :
2210 runs-on : ubuntu-latest
2311 name : Codegen Repo Validation
4634 env :
4735 GH_TOKEN : ${{ steps.get_access_token.outputs.token }}
4836 run : |
49- BRANCH_NAME="${{ github.event_name == ' pull_request' && github.head_ref || 'master' }}"
37+ BRANCH_NAME="${{ github.event. pull_request.head.sha }}"
5038
5139 # Trigger the workflow and capture the response
5240 gh workflow run pr.yml \
You can’t perform that action at this time.
0 commit comments