Skip to content

Commit

Permalink
Remove test because it needs reviewdog error
Browse files Browse the repository at this point in the history
  • Loading branch information
nayuta committed Dec 22, 2024
1 parent e63f662 commit a324957
Showing 1 changed file with 0 additions and 42 deletions.
42 changes: 0 additions & 42 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,48 +89,6 @@ jobs:
exit 1
fi
test-check-fail-on-error:
name: trivy (github-check-fail-on-error)
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- uses: ./
continue-on-error: true
id: test
env:
RUNNER_DEBUG: 1
with:
github_token: ${{ secrets.github_token }}
trivy_command: config
trivy_target: .
reporter: github-check
level: info
working_directory: testdata/config/terraform/with_detections
fail_on_error: true

# The check is expected to fail on the test data
- name: Check return codes
if: success() || failure ()
run: |
trivy_return="${{ steps.test.outputs.trivy-return-code }}"
reviewdog_return="${{ steps.test.outputs.reviewdog-return-code }}"
if [[ "$trivy_return" -eq 1 ]]; then
echo "trivy correctly returned failure ${trivy_return}"
else
echo "trivy returned ${trivy_return}, expected '1'. Failing..."
exit 1
fi
if [[ "$reviewdog_return" -ne 0 ]]; then
echo "reviewdog will fail with return code: ${reviewdog_return}"
else
echo "reviewdog returned ${reviewdog_return}, expected to fail. Failing..."
exit 1
fi
test-pr-check:
if: github.event_name == 'pull_request'
name: trivy (github-pr-check)
Expand Down

0 comments on commit a324957

Please sign in to comment.