Skip to content

Commit

Permalink
Merge pull request #41 from HollowMan6/reviewdog
Browse files Browse the repository at this point in the history
Intergrate fix with comments
  • Loading branch information
dwertent committed May 2, 2023
2 parents 141645a + ece0288 commit da5eef9
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 1 deletion.
8 changes: 8 additions & 0 deletions .github/workflows/example-fix.yaml
Expand Up @@ -15,6 +15,7 @@ jobs:

steps:
- uses: actions/checkout@v3
if: github.event_name != 'pull_request_target'
with:
fetch-depth: 0
- uses: actions/checkout@v3
Expand All @@ -32,6 +33,13 @@ jobs:
files: ${{ steps.changed-files.outputs.all_changed_files }}
fixFiles: true
format: "sarif"
# Use HollowMan6/sarif4reviewdog to support SARIF format for reviewdog
- name: PR Suggester by SARIF file
if: github.event_name == 'pull_request_target'
uses: HollowMan6/sarif4reviewdog@v1.0.0
with:
file: 'results.sarif'
level: warning
- uses: peter-evans/create-pull-request@v4
# Remember to allow GitHub Actions to create and approve pull requests
# https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/enabling-features-for-your-repository/managing-github-actions-settings-for-a-repository#preventing-github-actions-from-creating-or-approving-pull-requests
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
@@ -1,4 +1,4 @@
FROM quay.io/kubescape/kubescape:v2.2.6
FROM quay.io/kubescape/kubescape:v2.3.0

# Kubescape uses root privileges for writing the results to a file
USER root
Expand Down
8 changes: 8 additions & 0 deletions README.md
Expand Up @@ -60,6 +60,7 @@ jobs:

steps:
- uses: actions/checkout@v3
if: github.event_name != 'pull_request_target'
with:
fetch-depth: 0
- uses: actions/checkout@v3
Expand All @@ -77,6 +78,13 @@ jobs:
files: ${{ steps.changed-files.outputs.all_changed_files }}
fixFiles: true
format: "sarif"
# # Use HollowMan6/sarif4reviewdog to support SARIF format for reviewdog
# - name: PR Suggester by SARIF file
# if: github.event_name == 'pull_request_target'
# uses: HollowMan6/sarif4reviewdog@v1.0.0
# with:
# file: 'results.sarif'
# level: warning
- uses: peter-evans/create-pull-request@v4
# Remember to allow GitHub Actions to create and approve pull requests
# https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/enabling-features-for-your-repository/managing-github-actions-settings-for-a-repository#preventing-github-actions-from-creating-or-approving-pull-requests
Expand Down

0 comments on commit da5eef9

Please sign in to comment.