File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22---
33name : GitGuardian
44
5- on : [push]
5+ on :
6+ push :
7+ workflow_dispatch :
8+
9+ permissions :
10+ contents : read
611
712jobs :
813 scanning :
Original file line number Diff line number Diff line change 33---
44name : MegaLinter
55
6- # Trigger mega-linter at every push. Action will also be visible from Pull
7- # Requests to main
6+ # Trigger MegaLinter for pull requests, then re-check the merged result on main.
87on :
9- # Comment this line to trigger action only on pull-requests
10- # (not recommended if you don't pay for GH Actions)
118 push :
9+ branches :
10+ - main
1211
1312 pull_request :
1413 branches :
1514 - main
1615
16+ workflow_dispatch :
17+
1718concurrency :
1819 group : ${{ github.ref }}-${{ github.workflow }}
1920 cancel-in-progress : true
2627 name : MegaLinter
2728 runs-on : ubuntu-latest
2829
29- # Give the default GITHUB_TOKEN write permission to commit and push, comment
30- # issues & post new PR; remove the ones you do not need
3130 permissions :
3231 contents : read
33- issues : read
3432 pull-requests : read
3533
3634 steps :
4442 - name : Checkout Code
4543 uses : actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0
4644 with :
47- token : ${{ secrets.PAT || secrets.GITHUB_TOKEN }}
48-
49- # If you use VALIDATE_ALL_CODEBASE = true, you can remove this line to
50- # improve performance
51- fetch-depth : 0
45+ # Pull requests need history for diff linting; main pushes validate all code.
46+ fetch-depth : ${{ github.event_name == 'pull_request' && '0' || '1' }}
5247
5348 # MegaLinter
5449 - name : MegaLinter
Original file line number Diff line number Diff line change @@ -6,10 +6,17 @@ name: PSScriptAnalyzer
66
77on :
88 push :
9+ branches :
10+ - main
11+ workflow_dispatch :
912
1013permissions :
1114 contents : read
1215
16+ concurrency :
17+ group : ${{ github.workflow }}-${{ github.ref }}
18+ cancel-in-progress : true
19+
1320jobs :
1421 build :
1522 permissions :
You can’t perform that action at this time.
0 commit comments