File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -136,13 +136,13 @@ jobs:
136136 run : go test ./... -race -count=1 -shuffle=on -coverprofile=coverage.out -covermode=atomic -timeout=300s
137137 - name : Coverage summary
138138 run : |
139- coverage=$(go tool cover -func=coverage.out | grep total | awk '{print $3}' | tr -d '%')
139+ coverage=$(go tool cover -func=coverage.out | grep total | awk '{print $3}' | tr -d '%' | tail -1 )
140140 echo "Coverage: ${coverage}%"
141- echo "coverage =${coverage}" >> $GITHUB_ENV
141+ echo "COVERAGE =${coverage}" >> " $GITHUB_ENV"
142142 - name : Coverage threshold (minimum 10%)
143143 run : |
144- if (( $(echo "${coverage } < 10" | bc -l) )); then
145- echo "::error::Coverage ${coverage }% is below minimum 10%"
144+ if (( $(echo "${COVERAGE } < 10" | bc -l) )); then
145+ echo "::error::Coverage ${COVERAGE }% is below minimum 10%"
146146 exit 1
147147 fi
148148 - name : Upload coverage
@@ -184,7 +184,7 @@ jobs:
184184 - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
185185 with :
186186 fetch-depth : 0
187- - uses : gitleaks/gitleaks-action@3838638076c55b796d98e7f7bc1f8d93fda089e4 # v2.11.0
187+ - uses : gitleaks/gitleaks-action@ff98106e4c7b2bc287b24eaf42907196329070c7 # v2.3.9
188188 env :
189189 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
190190
@@ -207,7 +207,7 @@ jobs:
207207 runs-on : ubuntu-latest
208208 steps :
209209 - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
210- - uses : DavidAnson/markdownlint-cli2-action@43d16a9f5a242a4e2109391f3d7e7e4d8e3b6c7d # v19.0.0
210+ - uses : DavidAnson/markdownlint-cli2-action@a23dae216ce3fee4db69da41fed90d2a4af801cf # v19.0.0
211211 with :
212212 globs : ' **/*.md'
213213 config : |
You can’t perform that action at this time.
0 commit comments