Skip to content

Commit 43e4f4d

Browse files
committed
Fix code scanning issues
1 parent a6368b5 commit 43e4f4d

File tree

4 files changed

+12
-0
lines changed

4 files changed

+12
-0
lines changed

.github/workflows/WebExtensions.Net-Build.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ concurrency:
1111
env:
1212
DOTNET_VERSION: '10.0'
1313

14+
permissions:
15+
contents: read
16+
1417
jobs:
1518
version:
1619
runs-on: ubuntu-latest
@@ -90,6 +93,8 @@ jobs:
9093
tag:
9194
needs: [version, buildAndTest]
9295
runs-on: ubuntu-latest
96+
permissions:
97+
contents: write
9398
steps:
9499
- name: Checkout
95100
uses: actions/checkout@v5

.github/workflows/WebExtensions.Net-PR-Build.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ concurrency:
1111
env:
1212
DOTNET_VERSION: '10.0'
1313

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

.github/workflows/WebExtensions.Net-Release.yml

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

10+
permissions:
11+
contents: read
12+
1013
jobs:
1114
release:
1215
runs-on: ubuntu-latest

tool/WebExtensions.Net.Generator/WebExtensions.Net.Generator.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
5+
<NoWarn>$(NoWarn);CA1873</NoWarn>
56
</PropertyGroup>
67

78
<ItemGroup>

0 commit comments

Comments
 (0)