-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: badges, dependency management and workflow optimization (#71)
- Add build status and OpenSSF Scorecard badges on README file - Use lock file for restoring NuGet packages - Set code owners - Use global.json for .NET setup (workflows) - Create a manual workflow to create tags - Trigger package creation on release publish - Setup to not run CodeQL when pull request do not change code
- Loading branch information
Showing
11 changed files
with
944 additions
and
21 deletions.
There are no files selected for viewing
Validating CODEOWNERS rules …
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# Code Owners | ||
|
||
# Root | ||
* @skarllot |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
name: Create tag | ||
|
||
on: | ||
workflow_dispatch: | ||
|
||
env: | ||
DOTNET_GENERATE_ASPNET_CERTIFICATE: false | ||
DOTNET_NOLOGO: true | ||
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
create-tag: | ||
if: github.actor == 'skarllot' | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: write | ||
|
||
steps: | ||
- name: 🛡️ Harden Runner | ||
uses: step-security/harden-runner@63c24ba6bd7ba022e95695ff85de572c04a18142 # v2.7.0 | ||
with: | ||
egress-policy: audit | ||
|
||
- name: 🛒 Checkout | ||
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: 🧰 Setup .NET | ||
uses: actions/setup-dotnet@4d6c8fcf3c8f7a60068d26b594648e99df24cee3 # v4.0.0 | ||
with: | ||
global-json-file: global.json | ||
|
||
- name: 🛠️ Setup Nerdbank.GitVersioning | ||
run: dotnet tool install --tool-path . nbgv | ||
|
||
- name: 🏷️ Tag release | ||
run: ./nbgv tag | ||
|
||
- name: 🚀 Push Git tags | ||
run: git push --tags |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
{ | ||
"version": 1, | ||
"dependencies": { | ||
".NETStandard,Version=v2.0": { | ||
"DotNet.ReproducibleBuilds": { | ||
"type": "Direct", | ||
"requested": "[1.1.1, )", | ||
"resolved": "1.1.1", | ||
"contentHash": "+H2t/t34h6mhEoUvHi8yGXyuZ2GjSovcGYehJrS2MDm2XgmPfZL2Sdxg+uL2lKgZ4M6tTwKHIlxOob2bgh0NRQ==", | ||
"dependencies": { | ||
"Microsoft.SourceLink.AzureRepos.Git": "1.1.1", | ||
"Microsoft.SourceLink.Bitbucket.Git": "1.1.1", | ||
"Microsoft.SourceLink.GitHub": "1.1.1", | ||
"Microsoft.SourceLink.GitLab": "1.1.1" | ||
} | ||
}, | ||
"Nerdbank.GitVersioning": { | ||
"type": "Direct", | ||
"requested": "[3.6.133, )", | ||
"resolved": "3.6.133", | ||
"contentHash": "VZWMd5YAeDxpjWjAP/X6bAxnRMiEf6tES/ITN0X5CHJgkWLLeHGmEALivmTAfYM6P+P/3Szy6VCITUAkqjcHVw==" | ||
}, | ||
"NETStandard.Library": { | ||
"type": "Direct", | ||
"requested": "[2.0.3, )", | ||
"resolved": "2.0.3", | ||
"contentHash": "st47PosZSHrjECdjeIzZQbzivYBJFv6P2nv4cj2ypdI204DO+vZ7l5raGMiX4eXMJ53RfOIg+/s4DHVZ54Nu2A==", | ||
"dependencies": { | ||
"Microsoft.NETCore.Platforms": "1.1.0" | ||
} | ||
}, | ||
"Microsoft.Build.Tasks.Git": { | ||
"type": "Transitive", | ||
"resolved": "1.1.1", | ||
"contentHash": "AT3HlgTjsqHnWpBHSNeR0KxbLZD7bztlZVj7I8vgeYG9SYqbeFGh0TM/KVtC6fg53nrWHl3VfZFvb5BiQFcY6Q==" | ||
}, | ||
"Microsoft.NETCore.Platforms": { | ||
"type": "Transitive", | ||
"resolved": "1.1.0", | ||
"contentHash": "kz0PEW2lhqygehI/d6XsPCQzD7ff7gUJaVGPVETX611eadGsA3A877GdSlU0LRVMCTH/+P3o2iDTak+S08V2+A==" | ||
}, | ||
"Microsoft.SourceLink.AzureRepos.Git": { | ||
"type": "Transitive", | ||
"resolved": "1.1.1", | ||
"contentHash": "qB5urvw9LO2bG3eVAkuL+2ughxz2rR7aYgm2iyrB8Rlk9cp2ndvGRCvehk3rNIhRuNtQaeKwctOl1KvWiklv5w==", | ||
"dependencies": { | ||
"Microsoft.Build.Tasks.Git": "1.1.1", | ||
"Microsoft.SourceLink.Common": "1.1.1" | ||
} | ||
}, | ||
"Microsoft.SourceLink.Bitbucket.Git": { | ||
"type": "Transitive", | ||
"resolved": "1.1.1", | ||
"contentHash": "cDzxXwlyWpLWaH0em4Idj0H3AmVo3L/6xRXKssYemx+7W52iNskj/SQ4FOmfCb8YQt39otTDNMveCZzYtMoucQ==", | ||
"dependencies": { | ||
"Microsoft.Build.Tasks.Git": "1.1.1", | ||
"Microsoft.SourceLink.Common": "1.1.1" | ||
} | ||
}, | ||
"Microsoft.SourceLink.Common": { | ||
"type": "Transitive", | ||
"resolved": "1.1.1", | ||
"contentHash": "WMcGpWKrmJmzrNeuaEb23bEMnbtR/vLmvZtkAP5qWu7vQsY59GqfRJd65sFpBszbd2k/bQ8cs8eWawQKAabkVg==" | ||
}, | ||
"Microsoft.SourceLink.GitHub": { | ||
"type": "Transitive", | ||
"resolved": "1.1.1", | ||
"contentHash": "IaJGnOv/M7UQjRJks7B6p7pbPnOwisYGOIzqCz5ilGFTApZ3ktOR+6zJ12ZRPInulBmdAf1SrGdDG2MU8g6XTw==", | ||
"dependencies": { | ||
"Microsoft.Build.Tasks.Git": "1.1.1", | ||
"Microsoft.SourceLink.Common": "1.1.1" | ||
} | ||
}, | ||
"Microsoft.SourceLink.GitLab": { | ||
"type": "Transitive", | ||
"resolved": "1.1.1", | ||
"contentHash": "tvsg47DDLqqedlPeYVE2lmiTpND8F0hkrealQ5hYltSmvruy/Gr5nHAKSsjyw5L3NeM/HLMI5ORv7on/M4qyZw==", | ||
"dependencies": { | ||
"Microsoft.Build.Tasks.Git": "1.1.1", | ||
"Microsoft.SourceLink.Common": "1.1.1" | ||
} | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.