Skip to content
This repository was archived by the owner on Feb 5, 2024. It is now read-only.

Commit 085e723

Browse files
committed
Assign the minimum required access to workflow jobs
- https://docs.github.com/en/actions/using-jobs/assigning-permissions-to-jobs
1 parent ab993ec commit 085e723

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

.github/workflows/cd.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,14 @@ on:
88
tags:
99
- "*"
1010

11+
permissions: read-all
12+
1113
jobs:
1214
deploy:
1315
runs-on: ubuntu-latest
1416
steps:
15-
- uses: actions/checkout@v3
17+
- name: Checkout repository
18+
uses: actions/checkout@v3
1619
- name: Set up .NET SDK
1720
uses: actions/setup-dotnet@v3
1821
with:

.github/workflows/ci.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ on:
88
branches:
99
- main
1010

11+
permissions: read-all
12+
1113
jobs:
1214
build:
1315
strategy:
@@ -17,7 +19,8 @@ jobs:
1719
- windows-latest
1820
runs-on: ${{ matrix.os }}
1921
steps:
20-
- uses: actions/checkout@v3
22+
- name: Checkout repository
23+
uses: actions/checkout@v3
2124
with:
2225
fetch-depth: 10
2326
- name: Set up .NET SDK

0 commit comments

Comments
 (0)