Skip to content

Add test for trivy fs - #35

Merged
haya14busa merged 9 commits into
reviewdog:mainfrom
nayuta:add_fs_support
Sep 16, 2024
Merged

Add test for trivy fs#35
haya14busa merged 9 commits into
reviewdog:mainfrom
nayuta:add_fs_support

Conversation

@nayuta

@nayuta nayuta commented Mar 15, 2024

Copy link
Copy Markdown
Contributor

Add test for trivy fs to check #17, the test was added.

Changes:

  • multiple test was supported with GitHub Actions' matrix
    • You can put the test under ./testdata directory with ./testdata/[trivy command]/[platform label]/[with_detections|without_detections]
    • e.g. current terraform test is in ./testdata/config/terraform/with_detections and ./testdata/config/terraform/without_detections

@haya14busa

Copy link
Copy Markdown
Member

Sorry for the late response. Can you resolve the conflicts?

@nayuta

nayuta commented Jun 11, 2024

Copy link
Copy Markdown
Contributor Author

Thanks. However, the test on Windows failed accidentally. So, I'll check it this weekend.

@haya14busa

Copy link
Copy Markdown
Member

I guess we can ignore the windows error for now. #51 (comment)

Is this review ready?

@nayuta

nayuta commented Jul 2, 2024

Copy link
Copy Markdown
Contributor Author

I guess we can ignore the windows error for now. #51 (comment)

Is this review ready?

Yes, it's ready.

@nayuta
nayuta requested a review from haya14busa July 2, 2024 01:03
DIRS_RESULT="${DIRS_RESULT}${dir},"
fi
done
MATRIX_JSON=$(echo "${DIRS_RESULT}" | sed 's/,$//' | sed 's/\\n//g' | jq -R -s -c 'split(",") | [.[] | {dir: ., command: split("/")[2], type: split("/")[4], label: [split("/")[2],split("/")[3]] | join("/")}]')

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add some comments?
I don't quite understand what this script is doing.

@nayuta
nayuta requested a review from haya14busa August 20, 2024 12:38
@nayuta

nayuta commented Sep 3, 2024

Copy link
Copy Markdown
Contributor Author

@haya14busa how do you think about this?

@haya14busa haya14busa left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@haya14busa
haya14busa merged commit eec5058 into reviewdog:main Sep 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants