Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ def get_checks_errors(client: Client, commit_sha: str, branch_name: str):
query = f"""{_checks_latest_test_status_cte(commit_sha, branch_name)}
SELECT job_status, job_name, status AS test_status, test_name, results_link
FROM latest_test_status
WHERE job_status = 'error'
WHERE job_status = 'error' AND test_status NOT IN ('OK', 'SKIPPED')
ORDER BY job_name, test_name
"""
return query_dataframe_with_retry(client, query)
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/grype_scan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ jobs:
./.github/grype/run_grype_scan.sh $DOCKER_IMAGE

- name: Parse grype results
id: parse_grype
run: |
python3 -u ./.github/grype/parse_vulnerabilities_grype.py -o nice --no-colors --log raw.log --test-to-end

Expand Down Expand Up @@ -138,7 +139,7 @@ jobs:
owner: context.repo.owner,
repo: context.repo.repo,
sha: '${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.sha }}',
state: hasError ? 'error' : hasVulnerabilities ? 'failure' : 'success',
state: hasError ? 'error' : '${{ steps.parse_grype.outcome == 'success' && 'success' || 'failure' }}',
target_url: '${{ steps.upload_results.outputs.https_report_path }}',
description: hasError ? 'An error occurred' : `Grype Scan Completed with ${totalHighCritical} high/critical vulnerabilities`,
context: 'Grype Scan ${{ steps.set_version.outputs.docker_image || inputs.docker_image }}'
Expand Down
2 changes: 2 additions & 0 deletions ci/praktika/gh.py
Original file line number Diff line number Diff line change
Expand Up @@ -558,6 +558,8 @@ def convert_to_gh_status(cls, status):
return Result.Status.PENDING
elif status in Result.Status.DROPPED:
return Result.Status.ERROR
elif status in Result.Status.SKIPPED:
return Result.Status.SUCCESS
else:
assert (
False
Expand Down
Loading