Skip to content

Commit f0fbef1

Browse files
committed
chore: add security scanning and pin actions
1 parent 713ad96 commit f0fbef1

5 files changed

Lines changed: 98 additions & 5 deletions

File tree

‎.github/dependabot.yml‎

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "nuget"
4+
directory: "/"
5+
schedule:
6+
interval: "weekly"
7+
open-pull-requests-limit: 10
8+
9+
- package-ecosystem: "github-actions"
10+
directory: "/"
11+
schedule:
12+
interval: "weekly"
13+
open-pull-requests-limit: 10
14+

‎.github/workflows/ci.yml‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,20 @@ on:
88
branches:
99
- main
1010

11+
permissions:
12+
contents: read
13+
1114
jobs:
1215
build-test:
1316
runs-on: ubuntu-latest
1417
steps:
1518
- name: Checkout
16-
uses: actions/checkout@v4
19+
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5
1720
with:
1821
fetch-depth: 0
1922

2023
- name: Setup .NET
21-
uses: actions/setup-dotnet@v4
24+
uses: actions/setup-dotnet@67a3573c9a986a3f9c594539f4ab511d57bb3ce9
2225
with:
2326
dotnet-version: 8.0.x
2427

‎.github/workflows/codeql.yml‎

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: codeql
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
schedule:
11+
- cron: "0 3 * * 1"
12+
13+
permissions:
14+
actions: read
15+
contents: read
16+
security-events: write
17+
18+
jobs:
19+
analyze:
20+
name: Analyze
21+
runs-on: ubuntu-latest
22+
strategy:
23+
fail-fast: false
24+
matrix:
25+
language:
26+
- csharp
27+
28+
steps:
29+
- name: Checkout
30+
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5
31+
32+
- name: Setup .NET
33+
uses: actions/setup-dotnet@67a3573c9a986a3f9c594539f4ab511d57bb3ce9
34+
with:
35+
dotnet-version: 8.0.x
36+
37+
- name: Initialize CodeQL
38+
uses: github/codeql-action/init@b5ebac6f4c00c8ccddb7cdcd45fdb248329f808a
39+
with:
40+
languages: ${{ matrix.language }}
41+
42+
- name: Autobuild
43+
uses: github/codeql-action/autobuild@b5ebac6f4c00c8ccddb7cdcd45fdb248329f808a
44+
45+
- name: Analyze
46+
uses: github/codeql-action/analyze@b5ebac6f4c00c8ccddb7cdcd45fdb248329f808a

‎.github/workflows/release.yml‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@ jobs:
1414
runs-on: ubuntu-latest
1515
steps:
1616
- name: Checkout
17-
uses: actions/checkout@v4
17+
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5
1818
with:
1919
fetch-depth: 0
2020

2121
- name: Setup .NET
22-
uses: actions/setup-dotnet@v4
22+
uses: actions/setup-dotnet@67a3573c9a986a3f9c594539f4ab511d57bb3ce9
2323
with:
2424
dotnet-version: 8.0.x
2525

@@ -37,7 +37,7 @@ jobs:
3737

3838
- name: NuGet login (Trusted Publishing / OIDC)
3939
id: nuget-login
40-
uses: NuGet/login@v1
40+
uses: NuGet/login@d22cc5f58ff5b88bf9bd452535b4335137e24544
4141
with:
4242
user: ${{ secrets.NUGET_USER }}
4343

‎.github/workflows/trufflehog.yml‎

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: trufflehog
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
schedule:
11+
- cron: "0 4 * * 1"
12+
workflow_dispatch: {}
13+
14+
permissions:
15+
contents: read
16+
17+
jobs:
18+
scan:
19+
runs-on: ubuntu-latest
20+
steps:
21+
- name: Checkout
22+
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5
23+
with:
24+
fetch-depth: 0
25+
26+
- name: TruffleHog
27+
uses: trufflesecurity/trufflehog@6961f2bace57ab32b23b3ba40f8f420f6bc7e004
28+
with:
29+
version: "3.93.3"
30+
extra_args: --results=verified,unknown

0 commit comments

Comments
 (0)