Skip to content

Commit 995087d

Browse files
authored
Refactor .github folder (#52)
- weekly dependabot schedule - add release.yml - fix workflow security warnings - use windows-latest everywhere Co-authored-by: Rune Johansen <6797636+runejo@users.noreply.github.com>
1 parent a455bff commit 995087d

File tree

5 files changed

+24
-8
lines changed

5 files changed

+24
-8
lines changed

.github/dependabot.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ updates:
88
- package-ecosystem: "nuget"
99
directory: "/"
1010
schedule:
11-
interval: "daily"
11+
interval: "weekly"
1212
groups:
1313
minor-version-updates:
1414
applies-to: version-updates
@@ -18,4 +18,4 @@ updates:
1818
- package-ecosystem: "github-actions"
1919
directory: "/"
2020
schedule:
21-
interval: "daily"
21+
interval: "weekly"

.github/release.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
changelog:
2+
categories:
3+
- title: 🏕 Features
4+
labels:
5+
- "*"
6+
exclude:
7+
labels:
8+
- dependencies
9+
- title: 👒 Dependencies
10+
labels:
11+
- dependencies

.github/workflows/dependabot.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
steps:
1616
- name: Dependabot metadata
1717
id: metadata
18-
uses: dependabot/fetch-metadata@v2
18+
uses: dependabot/fetch-metadata@d7267f607e9d3fb96fc2fbe83e0af444713e90b7 #v2.3.0
1919
with:
2020
github-token: "${{ secrets.GITHUB_TOKEN }}"
2121
- name: Approve

.github/workflows/msbuild.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ on:
1111
# Allows you to run this workflow manually from the Actions tab
1212
workflow_dispatch:
1313

14+
permissions:
15+
contents: read
16+
1417
jobs:
1518
build:
1619
strategy:

.github/workflows/nuget.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,23 @@ on:
44
release:
55
types: [published]
66

7+
permissions:
8+
contents: read
9+
710
jobs:
811
release:
912

10-
runs-on: windows-2022
13+
runs-on: windows-latest
1114

1215
steps:
1316

1417
- uses: actions/checkout@v4
1518
with:
16-
fetch-depth: 0
19+
fetch-depth: 0
1720

18-
- uses: microsoft/setup-msbuild@v2
21+
- uses: microsoft/setup-msbuild@6fb02220983dee41ce7ae257b6f4d8f9bf5ed4ce #v2
1922

20-
- uses: NuGet/setup-nuget@v2
23+
- uses: NuGet/setup-nuget@323ab0502cd38fdc493335025a96c8fdb0edc71f #v2.0.1
2124

2225
- name: Restore NuGet packages
2326
run: nuget restore
@@ -31,4 +34,3 @@ jobs:
3134
nuget push $package $env:nuget_api_key -src https://nuget.org
3235
env:
3336
nuget_api_key: ${{ secrets.NUGET_API_KEY }}
34-

0 commit comments

Comments
 (0)