-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8 from globis-org/add/workdirs-check-step
mod: スキャン対象のディレクトリが存在するかどうかの条件分岐を追加
- Loading branch information
Showing
1 changed file
with
10 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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: | ||
|
@@ -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() | ||
|