Repository navigation
fix: support vendored Kubescape artifacts #81
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
matthyx
merged 4 commits into
kubescape:main
from
ANAMASGARD:fix/80-pin-kubescape-artifacts
Oct 8, 2026
Merged
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
df37bf1
fix: support vendored Kubescape artifacts
ANAMASGARD de69126
fix: harden pull request review workflow
ANAMASGARD 2c7b3ae
fix: address workflow review feedback
ANAMASGARD 2a0cfad
fix: isolate fork scans and prevent shell input injection
ANAMASGARD File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
This file contains hidden or 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 |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| name: Entrypoint tests | ||
|
|
||
| on: | ||
| push: | ||
| branches: [main] | ||
| pull_request: | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| jobs: | ||
| entrypoint: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0 | ||
| - name: Check entrypoint syntax | ||
| run: bash -n entrypoint.sh | ||
| - name: Run entrypoint tests | ||
| run: bash tests/entrypoint_test.sh | ||
| - name: Run action command-construction tests | ||
| run: bash tests/action_test.sh |
This file contains hidden or 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
This file contains hidden or 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
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🩺 Stability & Availability | 🟠 Major | ⚡ Quick win
🔎 Supported by static analysis
🏁 Script executed:
Repository: kubescape/github-action
Length of output: 5866
🏁 Script executed:
Repository: kubescape/github-action
Length of output: 42529
🌐 Web query:
GitHub Actions official documentation jobs needs if always skipped failed dependency upload-artifact v4 artifact-id output💡 Result:
Allow review publication after a failed scan with a successful artifact upload.
publish-reviewshas aneedsdependency but no status-check function, so GitHub Actions applies its implicitsuccess()condition. A failed Kubescape scan can still uploadresults.sarif, but the publishing job is skipped.Expose upload-step success as a job output and guard the publishing job with
always(), the repository check, and that output.Suggested fix
kubescape-fix-pr-reviews: runs-on: ubuntu-latest + outputs: + artifact_uploaded: ${{ steps.save_results.outcome == 'success' }} steps: @@ - name: Save scan results + id: save_results if: always() uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4 @@ publish-reviews: needs: kubescape-fix-pr-reviews - if: github.event.pull_request.head.repo.full_name == github.repository + if: ${{ always() && github.event.pull_request.head.repo.full_name == github.repository && needs.kubescape-fix-pr-reviews.outputs.artifact_uploaded == 'true' }}🤖 Prompt for AI Agents