Skip to content

Commit bfc3ea4

Browse files
authored
Merge pull request #107 from github/chore/update-action-workflows
Update action workflows
2 parents 7113c10 + 8200bb2 commit bfc3ea4

2 files changed

Lines changed: 9 additions & 3 deletions

File tree

.github/workflows/trigger-deploy-on-comment.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ name: Trigger deploy on comment
22
on:
33
issue_comment:
44
types: [created]
5+
permissions: read-all
56
jobs:
67
if_merged:
78
if: github.event.issue.pull_request && contains(github.event.comment.body, '/deploy')
@@ -18,7 +19,7 @@ jobs:
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

.github/workflows/website-pr-validation.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,13 @@ on:
99
jobs:
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
@@ -40,6 +41,10 @@ jobs:
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
@@ -49,7 +54,7 @@ jobs:
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

0 commit comments

Comments
 (0)