mirror of
https://github.com/outline/outline.git
synced 2026-12-02 01:34:47 +03:00
chore: Pass yarn audit when the audit service is unreachable (#14219)
This commit is contained in:
1 parent
3e5de4b1f5
commit
45bf9e290c
1 file changed
+10
-1
@@ -96,7 +96,16 @@ jobs:
|
||||
steps:
|
||||
- uses: actions/checkout@v5
|
||||
- uses: ./.github/actions/install
|
||||
- run: yarn npm audit --severity high --recursive --environment production
|
||||
# Pass when the audit service is unreachable, but still fail on vulnerabilities.
|
||||
- run: |
|
||||
set +e
|
||||
yarn npm audit --severity high --recursive --environment production 2>&1 | tee audit.log
|
||||
status=${PIPESTATUS[0]}
|
||||
if [ "$status" -ne 0 ] && grep -qE "RequestError|ETIMEDOUT|ECONNRESET|ECONNREFUSED|EAI_AGAIN|Response Code: 5[0-9]{2}" audit.log; then
|
||||
echo "::warning::yarn npm audit could not reach the audit service, skipping."
|
||||
exit 0
|
||||
fi
|
||||
exit "$status"
|
||||
|
||||
test:
|
||||
needs: changes
|
||||
|
||||
Reference in new issue
Block a user