forked from boost-community/scanner-registry
-
Notifications
You must be signed in to change notification settings - Fork 1
BST-17999 Add the github-actions scan tests #269
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
Merged
Changes from 7 commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
dfce2bc
BST-17999 Add the github-actions scan tests
lindycoder 669aed0
FIXUP set the right repo for token and point to the scan runner branch
lindycoder 739453b
FIXUP update the base ref
lindycoder acc6935
FIXUP use branch with logging, point to main
lindycoder ef21ae8
FIXUP fix json
lindycoder 6cfdcc3
FIXUP update action
lindycoder c2897f3
FIXUP invert test definition just to have file changes
lindycoder e852339
FIXUP use latest action
lindycoder 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,37 @@ | ||
| name: Scan Tests | ||
|
|
||
| on: | ||
| pull_request: | ||
| types: [opened, synchronize, reopened] | ||
| paths: ['scanners/**'] | ||
|
|
||
| jobs: | ||
| github-action: | ||
| name: Github Actions | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Generate GitHub App Token | ||
| id: github-token | ||
| uses: actions/create-github-app-token@v1 | ||
| with: | ||
| app-id: ${{ secrets.BOOST_SCAN_RUNNER_GITHUB_APP_ID }} | ||
| private-key: ${{ secrets.BOOST_SCAN_RUNNER_GITHUB_APP_PRIVATE_KEY }} | ||
| owner: boostsecurityio | ||
| repositories: scan-test-runner-gitbub-actions | ||
| - name: Checkout scanner registry | ||
| uses: actions/checkout@v4 | ||
| with: | ||
| fetch-depth: 0 # Need full history to detect changes | ||
| - name: Run Tests | ||
| uses: boostsecurityio/scan-test-action@2410d5ae4661d6dbe63a744b037aae9db7bd066e | ||
| with: | ||
| provider: github-actions | ||
| provider-config: | | ||
| { | ||
| "token": "${{ steps.github-token.outputs.token }}", | ||
| "owner": "boostsecurityio", | ||
| "repo": "scan-test-runner-gitbub-actions", | ||
| "workflow_id": "test-scanner.yml" | ||
| } | ||
| registry-repo: "${{ github.repository_owner }}/${{ github.event.repository.name }}" | ||
| base-ref: "${{ github.base_ref }}" |
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 |
|---|---|---|
| @@ -1,12 +1,12 @@ | ||
| version: "1.0" | ||
| tests: | ||
| - name: "gitleaks" | ||
| type: "source-code" | ||
| source: | ||
| url: "git@github.com:gitleaks/gitleaks.git" | ||
| ref: "v8.15.2" | ||
| - name: "osv-scanner" | ||
| type: "source-code" | ||
| source: | ||
| url: "git@github.com:google/osv-scanner.git" | ||
| ref: "main" | ||
| - name: "gitleaks" | ||
| type: "source-code" | ||
| source: | ||
| url: "git@github.com:gitleaks/gitleaks.git" | ||
| ref: "v8.15.2" |
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 |
|---|---|---|
|
|
@@ -6,5 +6,5 @@ tests: | |
| url: "https://github.com/martin-boost-dev/boost-poc-registry-testing-trivy" | ||
| ref: "main" | ||
| scan_paths: | ||
| - "rclone" | ||
| - "osv-scanner" | ||
| - "rclone" | ||
|
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. why was the ordering changed? |
||
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.
Note: this is just to trigger the scanner, eventually it will run a random scan when changing the action, not yet done.