-
Notifications
You must be signed in to change notification settings - Fork 48
Add vu1nz-scan sample action package #436
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
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,29 @@ | ||||||||||||||||||||||
| { | ||||||||||||||||||||||
| "name": "vu1nz-scan", | ||||||||||||||||||||||
| "publisher": "profullstack", | ||||||||||||||||||||||
| "type": "github-action", | ||||||||||||||||||||||
| "version": "0.1.0", | ||||||||||||||||||||||
| "title": "vu1nz Security Scan", | ||||||||||||||||||||||
| "description": "Adds a GitHub Actions workflow for running vu1nz security scans.", | ||||||||||||||||||||||
| "trustLevel": "verified", | ||||||||||||||||||||||
| "files": [ | ||||||||||||||||||||||
| { | ||||||||||||||||||||||
| "path": ".github/workflows/vu1nz-scan.yml", | ||||||||||||||||||||||
| "template": "workflows/vu1nz-scan.yml" | ||||||||||||||||||||||
| } | ||||||||||||||||||||||
| ], | ||||||||||||||||||||||
| "permissions": { | ||||||||||||||||||||||
| "contents": "read", | ||||||||||||||||||||||
| "security-events": "write" | ||||||||||||||||||||||
| }, | ||||||||||||||||||||||
| "secrets": [], | ||||||||||||||||||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
The existing
Suggested change
|
||||||||||||||||||||||
| "thirdPartyActions": [ | ||||||||||||||||||||||
| { | ||||||||||||||||||||||
| "uses": "actions/checkout@v4", | ||||||||||||||||||||||
| "pinned": false, | ||||||||||||||||||||||
| "trusted": true | ||||||||||||||||||||||
| } | ||||||||||||||||||||||
|
Comment on lines
+21
to
+25
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Supply-chain security best practice is to pin third-party actions to a full commit SHA. Explicitly setting
Suggested change
|
||||||||||||||||||||||
| ], | ||||||||||||||||||||||
| "requiresConfirmation": true, | ||||||||||||||||||||||
| "recommendedInstallMode": "pr" | ||||||||||||||||||||||
| } | ||||||||||||||||||||||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| name: vu1nz Scan | ||
|
|
||
| on: | ||
| push: | ||
| branches: | ||
| - main | ||
| - master | ||
| pull_request: | ||
|
Comment on lines
+3
to
+8
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
The existing |
||
|
|
||
| permissions: | ||
| contents: read | ||
| security-events: write | ||
|
|
||
| jobs: | ||
| scan: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@v4 | ||
|
|
||
| - name: Run vu1nz scan | ||
| run: | | ||
| echo "TODO: run vu1nz scan" | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| [ | ||
| { | ||
| "name": "vu1nz-scan", | ||
| "publisher": "profullstack", | ||
| "version": "0.1.0", | ||
| "description": "Adds vu1nz security scanning to GitHub Actions.", | ||
| "trustLevel": "verified", | ||
| "category": "security", | ||
| "path": "packages/actions/vu1nz-scan/sh1pt.action.json" | ||
| } | ||
| ] |
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.
sh1pt.action.jsondeclares"version": "0.1.0"whilesh1pt.actionpack.yamlin the same directory declaresversion: 1.0.0. The registry entry inactions.jsonalso uses0.1.0. Having two different canonical versions for the same package in the same directory will confuse any tooling that inspects both files to determine the installed version.