Skip to content

Commit

Permalink
Merge pull request #8 from globis-org/add/workdirs-check-step
Browse files Browse the repository at this point in the history
mod: スキャン対象のディレクトリが存在するかどうかの条件分岐を追加
  • Loading branch information
mutao-net authored Dec 21, 2023
2 parents 3437afe + b6817fa commit 25c48cc
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/secrets-scan.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,15 @@ jobs:
with:
ref: ${{ github.head_ref }}

- name: Check if workdir exists
id: check
run: |
if [ -d "${{ matrix.workdir }}" ]; then
echo "exists=true" >> $GITHUB_OUTPUT
else
echo "exists=false" >> $GITHUB_OUTPUT
fi
- name: Run Aqua Security Trivy
uses: aquasecurity/[email protected]
with:
Expand All @@ -47,6 +56,7 @@ jobs:
scanners: secret
output: trivy.txt
exit-code: 1
if: steps.check.outputs.exists == 'true'

- name: Post PR comments
if: failure()
Expand Down

0 comments on commit 25c48cc

Please sign in to comment.