Skip to content
Merged
Show file tree
Hide file tree
Changes from 7 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 37 additions & 0 deletions .github/workflows/scan-test.yml
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 }}"
10 changes: 5 additions & 5 deletions scanners/boostsecurityio/trivy-fs/tests.yaml
Copy link
Author

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.

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"
2 changes: 1 addition & 1 deletion scanners/boostsecurityio/trivy-image/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Choose a reason for hiding this comment

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

why was the ordering changed?

Loading