File tree Expand file tree Collapse file tree 1 file changed +20
-1
lines changed Expand file tree Collapse file tree 1 file changed +20
-1
lines changed Original file line number Diff line number Diff line change 26
26
outputs :
27
27
dotnet-sdk-version : ${{ steps.setup-dotnet.outputs.dotnet-version }}
28
28
29
+ permissions :
30
+ attestations : write
31
+ contents : read
32
+ id-token : write
33
+
29
34
strategy :
30
35
fail-fast : false
31
36
matrix :
77
82
if : ${{ runner.os != 'Windows' }}
78
83
run : ./eng/common/cibuild.sh -configuration Release -prepareMachine
79
84
85
+ - name : Attest artifacts
86
+ uses : actions/attest-build-provenance@49df96e17e918a15956db358890b08e61c704919 # v1.2.0
87
+ if : |
88
+ runner.os == 'Windows' &&
89
+ github.event.repository.fork == false &&
90
+ (github.ref_name == github.event.repository.default_branch ||
91
+ startsWith(github.ref, 'refs/heads/dev') ||
92
+ startsWith(github.ref, 'refs/heads/rel/') ||
93
+ startsWith(github.ref, 'refs/tags/'))
94
+ with :
95
+ subject-path : |
96
+ ./artifacts/bin/AspNet.Security.*/Release/**/AspNet.Security.*.dll
97
+ ./artifacts/packages/Release/Shipping/*
98
+
80
99
- name : Publish logs
81
100
uses : actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
82
101
if : ${{ always() }}
@@ -134,7 +153,7 @@ jobs:
134
153
runs-on : ubuntu-latest
135
154
if : |
136
155
github.event.repository.fork == false &&
137
- (github.ref == format('refs/heads/{0}', github.event.repository.default_branch) ||
156
+ (github.ref_name == github.event.repository.default_branch ||
138
157
startsWith(github.ref, 'refs/heads/dev') ||
139
158
startsWith(github.ref, 'refs/heads/rel/') ||
140
159
startsWith(github.ref, 'refs/tags/'))
You can’t perform that action at this time.
0 commit comments