Skip to content

Commit 94050ff

Browse files
authored
Merge pull request #403 from Yubico/release/1.15.1
Release/1.15.1
2 parents 38b6c77 + f7bfcb4 commit 94050ff

38 files changed

+791
-876
lines changed

.devcontainer/devcontainer.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
{
22
"image": "mcr.microsoft.com/devcontainers/dotnet:9.0",
33

4+
"features": {
5+
"ghcr.io/devcontainers/features/dotnet:2": {
6+
"version": "none",
7+
"additionalVersions": "8.0,10.0"
8+
}
9+
},
10+
411
"customizations": {
512
"vscode": {
613
"extensions": [

.github/dependabot.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,19 @@ updates:
2424
- package-ecosystem: "github-actions"
2525
directory: "/"
2626
schedule:
27-
interval: "monthly"
27+
interval: "weekly"
2828
day: "wednesday"
2929
time: "09:00"
3030
timezone: "Europe/Stockholm"
3131
groups:
3232
github-actions:
3333
patterns:
34-
- "*"
34+
- "*"
35+
36+
- package-ecosystem: docker
37+
directory: /
38+
schedule:
39+
interval: "weekly"
40+
day: "wednesday"
41+
time: "09:00"
42+
timezone: "Europe/Stockholm"

.github/workflows/build-nativeshims.yml

Lines changed: 51 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,20 @@ on:
2929
schedule:
3030
- cron: '0 0 * * *' # Every day at midnight
3131

32+
permissions:
33+
contents: read
34+
3235
jobs:
3336
build-windows:
3437
name: Build Windows
3538
runs-on: windows-2022
3639
steps:
37-
- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
40+
- name: Harden the runner (Audit all outbound calls)
41+
uses: step-security/harden-runner@e3f713f2d8f53843e71c69a996d56f51aa9adfb9 # v2.14.1
42+
with:
43+
egress-policy: audit
44+
45+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
3846
with:
3947
persist-credentials: false
4048
- run: |
@@ -52,25 +60,25 @@ jobs:
5260
} else {
5361
& ./build-windows.ps1
5462
}
55-
- uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
63+
- uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
5664
with:
5765
name: win-x64
5866
path: Yubico.NativeShims/win-x64/**
59-
- uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
67+
- uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
6068
with:
6169
name: win-x86
6270
path: Yubico.NativeShims/win-x86/**
63-
- uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
71+
- uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
6472
with:
6573
name: win-arm64
6674
path: Yubico.NativeShims/win-arm64/**
67-
- uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
75+
- uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
6876
with:
6977
name: nuspec
7078
path: |
7179
Yubico.NativeShims/*.nuspec
7280
Yubico.NativeShims/readme.md
73-
- uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
81+
- uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
7482
with:
7583
name: msbuild
7684
path: Yubico.NativeShims/msbuild/*
@@ -79,7 +87,12 @@ jobs:
7987
name: Build Linux (amd64)
8088
runs-on: ubuntu-24.04
8189
steps:
82-
- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
90+
- name: Harden the runner (Audit all outbound calls)
91+
uses: step-security/harden-runner@e3f713f2d8f53843e71c69a996d56f51aa9adfb9 # v2.14.1
92+
with:
93+
egress-policy: audit
94+
95+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
8396
with:
8497
persist-credentials: false
8598
- name: Install Zig (pinned version)
@@ -222,7 +235,7 @@ jobs:
222235
readelf -V *.so | grep GLIBC_2 | sort -u
223236
echo "✅ Binary compatible with Debian 10 (glibc 2.28)"
224237
'
225-
- uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
238+
- uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
226239
with:
227240
name: linux-x64
228241
path: Yubico.NativeShims/linux-x64/*.so
@@ -231,7 +244,12 @@ jobs:
231244
name: Build Linux (arm64)
232245
runs-on: ubuntu-24.04
233246
steps:
234-
- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
247+
- name: Harden the runner (Audit all outbound calls)
248+
uses: step-security/harden-runner@e3f713f2d8f53843e71c69a996d56f51aa9adfb9 # v2.14.1
249+
with:
250+
egress-policy: audit
251+
252+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
235253
with:
236254
persist-credentials: false
237255
- name: Install Zig (pinned version)
@@ -304,7 +322,7 @@ jobs:
304322
bash ./build-linux-arm64.sh
305323
fi
306324
- name: Set up QEMU for ARM64 testing
307-
uses: docker/setup-qemu-action@v3
325+
uses: docker/setup-qemu-action@c7c53464625b32c7a7e944ae62b3e17d2b600130 # v3.7.0
308326
with:
309327
platforms: arm64
310328
- name: Test on Ubuntu 18.04 (glibc 2.27)
@@ -378,7 +396,7 @@ jobs:
378396
readelf -V *.so | grep GLIBC_2 | sort -u
379397
echo "✅ ARM64 binary compatible with Debian 10 (glibc 2.28)"
380398
'
381-
- uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
399+
- uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
382400
with:
383401
name: linux-arm64
384402
path: Yubico.NativeShims/linux-arm64/*.so
@@ -387,7 +405,12 @@ jobs:
387405
name: Build macOS
388406
runs-on: macos-14
389407
steps:
390-
- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
408+
- name: Harden the runner (Audit all outbound calls)
409+
uses: step-security/harden-runner@e3f713f2d8f53843e71c69a996d56f51aa9adfb9 # v2.14.1
410+
with:
411+
egress-policy: audit
412+
413+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
391414
with:
392415
persist-credentials: false
393416
- run: |
@@ -399,11 +422,11 @@ jobs:
399422
else
400423
sh ./build-macOS.sh
401424
fi
402-
- uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
425+
- uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
403426
with:
404427
name: osx-x64
405428
path: Yubico.NativeShims/osx-x64/**
406-
- uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
429+
- uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
407430
with:
408431
name: osx-arm64
409432
path: Yubico.NativeShims/osx-arm64/**
@@ -421,8 +444,13 @@ jobs:
421444
PACKAGE_VERSION: ${{ github.event.inputs.version != '' && github.event.inputs.version || '1.0.0' }}
422445
GITHUB_REPO_URL: https://github.com/${{ github.repository }}
423446
steps:
447+
- name: Harden the runner (Audit all outbound calls)
448+
uses: step-security/harden-runner@e3f713f2d8f53843e71c69a996d56f51aa9adfb9 # v2.14.1
449+
with:
450+
egress-policy: audit
451+
424452
- name: Download contents, set metadata and package
425-
uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6.0.0
453+
uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7.0.0
426454
- run: |
427455
mv nuspec/*.nuspec .
428456
mv nuspec/readme.md .
@@ -437,13 +465,13 @@ jobs:
437465
- run: nuget pack Yubico.NativeShims.nuspec
438466

439467
- name: Upload Nuget Package
440-
uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
468+
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
441469
with:
442470
name: NuGet Package NativeShims
443471
path: Yubico.NativeShims.*.nupkg
444472

445473
- name: Generate artifact attestation
446-
uses: actions/attest-build-provenance@977bb373ede98d70efdf65b84cb5f73e068dcc2a # v3.0.0
474+
uses: actions/attest-build-provenance@96278af6caaf10aea03fd8d33a09a777ca52d62f # v3.2.0
447475
with:
448476
subject-path: |
449477
Yubico.NativeShims/**/*.dll
@@ -460,7 +488,12 @@ jobs:
460488
packages: write
461489
if: ${{ github.event.inputs.push-to-dev == 'true' }}
462490
steps:
463-
- uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6.0.0
491+
- name: Harden the runner (Audit all outbound calls)
492+
uses: step-security/harden-runner@e3f713f2d8f53843e71c69a996d56f51aa9adfb9 # v2.14.1
493+
with:
494+
egress-policy: audit
495+
496+
- uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7.0.0
464497
with:
465498
name: NuGet Package NativeShims
466499
- run: |

.github/workflows/build-pull-requests.yml

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,17 @@ on:
2929
- '.github/workflows/build-pull-requests.yml'
3030

3131
permissions:
32-
pull-requests: write
33-
checks: write
3432
contents: read
35-
packages: read
36-
33+
3734
jobs:
3835
run-tests:
3936
name: Run tests
37+
# Requires write permissions to publish test results and coverage reports to PR
38+
permissions:
39+
pull-requests: write # Required to comment on PRs with test results
40+
checks: write # Required to create check runs for test results
41+
contents: read
42+
packages: read
4043
uses: ./.github/workflows/test.yml
4144
with:
4245
build-coverage-report: true
@@ -47,10 +50,15 @@ jobs:
4750
needs: run-tests
4851

4952
steps:
50-
- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
53+
- name: Harden the runner (Audit all outbound calls)
54+
uses: step-security/harden-runner@e3f713f2d8f53843e71c69a996d56f51aa9adfb9 # v2.14.1
55+
with:
56+
egress-policy: audit
57+
58+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
5159
with:
5260
persist-credentials: false
53-
- uses: actions/setup-dotnet@2016bd2012dba4e32de620c46fe006a3ac9f0602 # v5.0.1
61+
- uses: actions/setup-dotnet@baa11fbfe1d6520db94683bd5c7a3818018e4309 # v5.1.0
5462
with:
5563
global-json-file: global.json
5664
source-url: https://nuget.pkg.github.com/Yubico/index.json
@@ -63,15 +71,15 @@ jobs:
6371
NUGET_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6472

6573
- name: Save build artifacts
66-
uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
74+
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
6775
with:
6876
name: Nuget Packages Release
6977
path: |
7078
Yubico.Core/src/bin/Release/*.nupkg
7179
Yubico.YubiKey/src/bin/Release/*.nupkg
7280
7381
- name: Save build artifacts
74-
uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
82+
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
7583
with:
7684
name: Assemblies Release
7785
path: |

0 commit comments

Comments
 (0)