Skip to content
Draft
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
25 changes: 25 additions & 0 deletions .github/workflows/checkton-self.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,31 @@ jobs:
differential: false
fail-on-findings: false

- name: Inject rules into the SARIF file
run: |
jq < .checkton.sarif '.runs[].tool.driver.rules = [
{
"id": "SHELLCHECK_WARNING: warning[SC2053]",
"properties": {
"tags": [
"ShellCheck"
]
},
"name": "SC2053",
"shortDescription": {
"text": "SC2053"
},
"help": {
"text": "Defect reference: https://github.com/koalaman/shellcheck/wiki/SC2053",
"markdown": "Defect reference: [SC2053](https://github.com/koalaman/shellcheck/wiki/SC2053)"
},
"fullDescription": {
"text": "Defect reference: https://github.com/koalaman/shellcheck/wiki/SC2053"
}
}
]' > .checkton.sarif.2
mv .checkton.sarif.2 .checkton.sarif

- name: Upload SARIF file
uses: github/codeql-action/upload-sarif@4fa2a7953630fd2f3fb380f21be14ede0169dd4f # v3
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
image_without_digest=${image%@*}
version=${image_without_digest##*:}

if [[ "$tag" != "$version" ]]; then
if [[ $tag != "$version" ]]; then
echo "Tag does not match action.yaml image version: $tag X $image" >&2
exit 1
fi
Expand Down