Commit e8603fa 1 parent 9c78078 commit e8603fa Copy full SHA for e8603fa
File tree 2 files changed +9
-1
lines changed
2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change 78
78
name : codecov-demo
79
79
verbose : true
80
80
token : ${{ secrets.CODECOV_TOKEN }}
81
+ - name : Upload coverage to Codecov (oidc)
82
+ uses : ./
83
+ with :
84
+ files : ./coverage/script/coverage-final.json
85
+ flags : script,${{ matrix.os }}
86
+ name : codecov-script
87
+ use_oidc : true
88
+ verbose : true
81
89
- name : Upload coverage to Codecov (version)
82
90
uses : ./
83
91
with :
Original file line number Diff line number Diff line change @@ -166,7 +166,7 @@ runs:
166
166
if [ ${{ inputs.use_oidc }} == 'true' ];
167
167
then
168
168
# {"count":1984,"value":"***"}
169
- CC_TOKEN=$(curl -H "Authorization: bearer $ACTIONS_ID_TOKEN_REQUEST_TOKEN" "$ACTIONS_ID_TOKEN_REQUEST_URL&audience=api://AzureADTokenExchange" | cut -d\' -f6)
169
+ CC_TOKEN=$(curl -H "Authorization: bearer $ACTIONS_ID_TOKEN_REQUEST_TOKEN" "$ACTIONS_ID_TOKEN_REQUEST_URL&audience=api://AzureADTokenExchange" | cut -d\" -f6)
170
170
echo "CC_TOKEN=$CC_TOKEN" >> "$GITHUB_ENV"
171
171
else
172
172
if [ -n ${{ inputs.token }} ];
You can’t perform that action at this time.
0 commit comments