File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ name: Trigger deploy on comment
22on :
33 issue_comment :
44 types : [created]
5+ permissions : read-all
56jobs :
67 if_merged :
78 if : github.event.issue.pull_request && contains(github.event.comment.body, '/deploy')
1819 core.setFailed("User not authorized to deploy")
1920 }
2021 - name : Trigger build
21- uses : benc-uk/workflow-dispatch@v1
22+ uses : benc-uk/workflow-dispatch@e2e5e9a103e331dad343f381a29e654aea3cf8fc # v1.2.4
2223 with :
2324 repo : ${{ secrets.GITHUBBRASIL_REPO_NWO }}
2425 workflow : Trigger build when public PR is merged
Original file line number Diff line number Diff line change 99jobs :
1010 lint :
1111 runs-on : ubuntu-latest
12+ permissions : read-all
1213 steps :
1314 - name : Checkout repo
1415 uses : actions/checkout@v3
1516 - name : Check format of yaml file
1617 id : yaml-lint
17- uses : ibiqlik/action-yamllint@v3
18+ uses : ibiqlik/action-yamllint@2576378a8e339169678f9939646ee3ee325e845c # v3.1.1
1819 with :
1920 strict : true
2021 file_or_dir : website/**/*.yml
4041 validate :
4142 runs-on : ubuntu-latest
4243 needs : lint
44+ permissions :
45+ contents : read
46+ pull-requests : write
47+ actions : write
4348 steps :
4449 - name : Checkout fork
4550 uses : actions/checkout@v3
4954 ref : main
5055 repository : ${{ secrets.BRAZIL_REPO_NWO }}
5156 path : ./brazil-main
52- - uses : ruby/setup-ruby@v1
57+ - uses : ruby/setup-ruby@4a9ddd6f338a97768b8006bf671dfbad383215f4 # v1.207.0
5358 with :
5459 ruby-version : 3.0.0
5560 - name : Validate PR
You can’t perform that action at this time.
0 commit comments