Skip to content

Commit 56bda26

Browse files
committed
making silly linters happy
1 parent 8fa1422 commit 56bda26

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/scan-image-grype.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,15 +75,15 @@ jobs:
7575
7676
- name: Validate timeout-minutes
7777
run: |
78-
if [[ ! "${{ inputs.timeout-minutes }}" =~ ^[0-9]+$ ]] || [[ "${{ inputs.timeout-minutes }}" \< 1 ]] || [[ "${{ inputs.timeout-minutes }}" \> 360 ]]; then
78+
if [[ ! "${{ inputs.timeout-minutes }}" =~ ^[0-9]+$ ]] || (( "${{ inputs.timeout-minutes }}" < 1 )) || (( "${{ inputs.timeout-minutes }}" > 360 )); then
7979
echo "Error: Invalid timeout-minutes value '${{ inputs.timeout-minutes }}'"
8080
echo "Value must be a number between 1 and 360 minutes"
8181
exit 1
8282
fi
8383
8484
- name: Validate retention-days
8585
run: |
86-
if [[ ! "${{ inputs.retention-days }}" =~ ^[0-9]+$ ]] || [[ "${{ inputs.retention-days }}" \< 1 ]] || [[ "${{ inputs.retention-days }}" \> 90 ]]; then
86+
if [[ ! "${{ inputs.retention-days }}" =~ ^[0-9]+$ ]] || (( "${{ inputs.retention-days }}" < 1 )) || (( "${{ inputs.retention-days }}" > 90 )); then
8787
echo "Error: Invalid retention-days value '${{ inputs.retention-days }}'"
8888
echo "Value must be a number between 1 and 90 days"
8989
exit 1

0 commit comments

Comments
 (0)