Skip to content

Commit a31311d

Browse files
committed
[github workflows] add permissions
1 parent 2ad95db commit a31311d

8 files changed

+22
-6
lines changed

.github/workflows/add-maintainer-custom-property.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ on:
55
schedule:
66
- cron: '0 0 27 * *'
77
workflow_dispatch:
8+
permissions: {}
9+
810
jobs:
911
run:
1012
runs-on: ubuntu-latest
@@ -14,4 +16,4 @@ jobs:
1416
ignore_maintainers: brave-builds,brave-browser-releases,brave-support-admin
1517
debug: false
1618
github_token: ${{ secrets.CUSTOM_PROPERTY_MANAGER_GITHUB_TOKEN }}
17-
slack_token: ${{ secrets.HOTSPOTS_SLACK_TOKEN }}
19+
slack_token: ${{ secrets.HOTSPOTS_SLACK_TOKEN }}

.github/workflows/add-runtime-custom-property.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ on:
55
schedule:
66
- cron: '0 0 22 * *'
77
workflow_dispatch:
8+
permissions: {}
9+
810
jobs:
911
run:
1012
runs-on: ubuntu-latest
@@ -17,4 +19,4 @@ jobs:
1719
with:
1820
github_token: ${{ secrets.CUSTOM_PROPERTY_MANAGER_GITHUB_TOKEN }}
1921
static_repositories: ${{ secrets.STATIC_WEBSITE_REPOSITORIES }}
20-
runtime_directory: ${{ github.workspace }}
22+
runtime_directory: ${{ github.workspace }}

.github/workflows/check-new-repos.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ on:
44
# nightly (0th hour 0th minute of every day)
55
- cron: '0 0 * * *'
66
workflow_dispatch:
7+
permissions: {}
8+
79
jobs:
810
build:
911
runs-on: ubuntu-latest
@@ -13,4 +15,4 @@ jobs:
1315
with:
1416
github_token: ${{ secrets.ORG_READ_GITHUB_TOKEN }}
1517
slack_token: ${{ secrets.HOTSPOTS_SLACK_TOKEN }}
16-
debug: false
18+
debug: false

.github/workflows/copy-repo-secrets-to-org-secrets.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ on:
33
workflow_dispatch:
44
schedule:
55
- cron: '30 1 * * *'
6+
permissions: {}
7+
68
jobs:
79
copy-secrets:
810
runs-on: ubuntu-latest

.github/workflows/dependabot-auto-dismiss.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ on:
44
# Run at 24:00 UTC every Monday
55
- cron: "0 0 * * 1"
66
workflow_dispatch:
7+
permissions: {}
8+
79
jobs:
810
run:
911
runs-on: ubuntu-latest
@@ -13,4 +15,4 @@ jobs:
1315
with:
1416
github_token: ${{ secrets.DEPENDABOT_AUTO_DISMISS_GITHUB_TOKEN }}
1517
slack_token: ${{ secrets.HOTSPOTS_SLACK_TOKEN }}
16-
debug: false
18+
debug: false

.github/workflows/dependabot-nudge.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ on:
44
# Run at 17 UTC (9-ish am Pacific) every Monday
55
- cron: "0 17 * * 1"
66
workflow_dispatch:
7+
permissions: {}
8+
79
jobs:
810
run:
911
runs-on: ubuntu-latest

.github/workflows/older-than-2y.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ on:
44
# Every month, first day of the month
55
- cron: '0 0 1 * *'
66
workflow_dispatch:
7+
permissions: {}
8+
79
jobs:
810
build:
911
runs-on: ubuntu-latest
@@ -13,4 +15,4 @@ jobs:
1315
with:
1416
github_token: ${{ secrets.ORG_READ_GITHUB_TOKEN }}
1517
slack_token: ${{ secrets.HOTSPOTS_SLACK_TOKEN }}
16-
debug: false
18+
debug: false

.github/workflows/renovate-sanity-check.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ on:
55
schedule:
66
- cron: '0 0 15 * *'
77
workflow_dispatch:
8+
permissions: {}
9+
810
jobs:
911
run:
1012
runs-on: ubuntu-latest
@@ -14,4 +16,4 @@ jobs:
1416
with:
1517
github_token: ${{ secrets.CUSTOM_PROPERTY_MANAGER_GITHUB_TOKEN }}
1618
slack_token: ${{ secrets.HOTSPOTS_SLACK_TOKEN }}
17-
debug: false
19+
debug: false

0 commit comments

Comments
 (0)