Skip to content

Commit 9c5f51c

Browse files
authored
OpenSSF Scorecard - Set token-permissions to content-read (#4125)
1 parent b07874a commit 9c5f51c

14 files changed

+41
-0
lines changed

.github/workflows/build-container.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ name: Build on Containers
33
on:
44
workflow_call:
55

6+
permissions:
7+
contents: read
8+
69
env:
710
NUGET_PACKAGES: ${{ github.workspace }}/packages
811
DOTNET_CLI_TELEMETRY_OPTOUT: 1

.github/workflows/build-nuget-packages.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ on:
88
description: "The NuGet version suffix to build the packages"
99
value: ${{ jobs.build-nuget-packages.outputs.nuget-version-suffix }}
1010

11+
permissions:
12+
contents: read
1113

1214
env:
1315
NUGET_PACKAGES: ${{ github.workspace }}/packages

.github/workflows/build-ubuntu1604-native-container.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ name: Build on Ubuntu 16.04 Native Container
33
on:
44
workflow_call:
55

6+
permissions:
7+
contents: read
8+
69
env:
710
NUGET_PACKAGES: ${{ github.workspace }}/packages
811
DOTNET_CLI_TELEMETRY_OPTOUT: 1

.github/workflows/build.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ env:
77
NUGET_PACKAGES: ${{ github.workspace }}/packages
88
DOTNET_CLI_TELEMETRY_OPTOUT: 1
99

10+
permissions:
11+
contents: read
12+
1013
jobs:
1114
build:
1215
strategy:

.github/workflows/check-sdk-versions.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ on:
77
merge_group:
88
workflow_dispatch:
99

10+
permissions:
11+
contents: read
12+
1013
jobs:
1114
check-sdk-versions:
1215
runs-on: windows-latest

.github/workflows/ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ env:
1111
NUGET_PACKAGES: ${{ github.workspace }}/packages
1212
DOTNET_CLI_TELEMETRY_OPTOUT: 1
1313

14+
permissions:
15+
contents: read
16+
1417
jobs:
1518
build-container:
1619
uses: ./.github/workflows/build-container.yml

.github/workflows/demo.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ on:
1111
- examples/demo/**
1212
workflow_dispatch:
1313

14+
permissions:
15+
contents: read
16+
1417
jobs:
1518
build:
1619
runs-on: ubuntu-latest

.github/workflows/dotnet-format.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ on:
1414
merge_group:
1515
workflow_dispatch:
1616

17+
permissions:
18+
contents: read
19+
1720
jobs:
1821
check-format:
1922
runs-on: windows-latest

.github/workflows/format-native.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ on:
77
merge_group:
88
workflow_dispatch:
99

10+
permissions:
11+
contents: read
12+
1013
jobs:
1114
check-native-format:
1215
strategy:

.github/workflows/release-publish.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ on:
44
release:
55
types: [published]
66

7+
permissions:
8+
contents: read
9+
710
jobs:
811
powershell-script:
912
runs-on: windows-2022

0 commit comments

Comments
 (0)