Skip to content

Commit dd4449b

Browse files
Add 'permissions: read-all' to multiple workflow files for consistency
1 parent de5b308 commit dd4449b

7 files changed

Lines changed: 21 additions & 7 deletions

File tree

.github/workflows/build-and-test.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ on:
88
- "hotfix/**"
99

1010

11+
permissions: read-all
12+
1113
jobs:
1214
build-and-test:
1315
permissions:
@@ -18,4 +20,4 @@ jobs:
1820
with:
1921
dotnet-project: "XtremeIdiots.Portal.Web"
2022
dotnet-version: 9.0.x
21-
src-folder: "src"
23+
src-folder: "src"

.github/workflows/codequality.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ on:
1212
- cron: "0 3 * * 1"
1313

1414

15+
permissions: read-all
16+
1517
jobs:
1618
quality:
1719
permissions:
@@ -47,4 +49,4 @@ jobs:
4749
- name: Checkout repository
4850
uses: actions/checkout@v6
4951
- name: Dependency Review
50-
uses: actions/dependency-review-action@v4
52+
uses: actions/dependency-review-action@v4

.github/workflows/copilot-setup-steps.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ on:
1111
paths:
1212
- .github/workflows/copilot-setup-steps.yml
1313

14+
permissions: read-all
15+
1416
jobs:
1517
# The job MUST be called `copilot-setup-steps` or it will not be picked up by Copilot.
1618
copilot-setup-steps:
@@ -31,4 +33,4 @@ jobs:
3133
- name: Setup .NET
3234
uses: actions/setup-dotnet@v5
3335
with:
34-
dotnet-version: "9.0.x"
36+
dotnet-version: "9.0.x"

.github/workflows/dependabot-automerge.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ on:
55
- main
66

77

8+
permissions: read-all
9+
810
jobs:
911
dependabot:
1012
permissions:
@@ -22,4 +24,4 @@ jobs:
2224
run: gh pr merge --auto --merge "$PR_URL"
2325
env:
2426
PR_URL: ${{github.event.pull_request.html_url}}
25-
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
27+
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

.github/workflows/deploy-dev.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ on:
44
workflow_dispatch:
55

66

7+
permissions: read-all
8+
79
jobs:
810
build-and-test:
911
permissions:
@@ -70,4 +72,4 @@ jobs:
7072
resource-group-name: ${{ needs.terraform-plan-and-apply-dev.outputs.web_app_resource_group }}
7173
AZURE_CLIENT_ID: ${{ vars.AZURE_CLIENT_ID }}
7274
AZURE_TENANT_ID: ${{ vars.AZURE_TENANT_ID }}
73-
AZURE_SUBSCRIPTION_ID: ${{ vars.AZURE_SUBSCRIPTION_ID }}
75+
AZURE_SUBSCRIPTION_ID: ${{ vars.AZURE_SUBSCRIPTION_ID }}

.github/workflows/deploy-prd.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ on:
99
- cron: "0 3 * * 4"
1010

1111

12+
permissions: read-all
13+
1214
concurrency:
1315
group: ${{ github.workflow }}
1416

@@ -133,4 +135,4 @@ jobs:
133135
resource-group-name: ${{ needs.terraform-plan-and-apply-prd.outputs.web_app_resource_group }}
134136
AZURE_CLIENT_ID: ${{ vars.AZURE_CLIENT_ID }}
135137
AZURE_TENANT_ID: ${{ vars.AZURE_TENANT_ID }}
136-
AZURE_SUBSCRIPTION_ID: ${{ vars.AZURE_SUBSCRIPTION_ID }}
138+
AZURE_SUBSCRIPTION_ID: ${{ vars.AZURE_SUBSCRIPTION_ID }}

.github/workflows/pr-verify.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ on:
1414
types: [opened, synchronize, reopened, ready_for_review]
1515

1616

17+
permissions: read-all
18+
1719
jobs:
1820
build-and-test:
1921
permissions:
@@ -75,4 +77,4 @@ jobs:
7577
terraform-backend-file: "backends/prd.backend.hcl"
7678
AZURE_CLIENT_ID: ${{ vars.AZURE_CLIENT_ID }}
7779
AZURE_TENANT_ID: ${{ vars.AZURE_TENANT_ID }}
78-
AZURE_SUBSCRIPTION_ID: ${{ vars.AZURE_SUBSCRIPTION_ID }}
80+
AZURE_SUBSCRIPTION_ID: ${{ vars.AZURE_SUBSCRIPTION_ID }}

0 commit comments

Comments
 (0)