Skip to content

Commit 5672d91

Browse files
chore(ci): fix Node.js 20 deprecation and harden workflows
- Opt into Node.js 24 runtime via FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true. - Pin actions/checkout and actions/setup-dotnet to immutable commit SHAs. - Disable checkout credential persistence for better security. Co-authored-by: Jadhielv <24376900+Jadhielv@users.noreply.github.com>
1 parent 5ddf0a1 commit 5672d91

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

.github/workflows/dotnet.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,11 @@ jobs:
1818
runs-on: ubuntu-latest
1919

2020
steps:
21-
- uses: actions/checkout@v4
21+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
22+
with:
23+
persist-credentials: false
2224
- name: Setup .NET
23-
uses: actions/setup-dotnet@v4
25+
uses: actions/setup-dotnet@67a3573c9a986a3f9c594539f4ab511d57bb3ce9 # v4.3.1
2426
with:
2527
dotnet-version: 10.0.100
2628
- name: Restore dependencies

0 commit comments

Comments
 (0)