Skip to content

Setup action

Setup action #44

Workflow file for this run

name: Smoke Tests
on:
pull_request:
types: [opened, synchronize, reopened]
paths: ['scanners/**']
jobs:
github-action:
name: Github Actions
runs-on: ubuntu-latest
steps:
- name: Checkout scanner registry
uses: actions/checkout@v4
with:
fetch-depth: 0 # Need full history to detect changes
- name: Run Tests
uses: martin-boost-dev/boostsec-registry-test-action@833b99ee14f45c6b5fe60ae0e90261bb87fc312a
with:
provider: github
provider-config: |
{
"token": "${{ secrets.BOOST_GITHUB_TEST_RUNNER }}",
"owner": "martin-boost-dev",
"repo": "boostsec-registry-test-runner",
"workflow_id": "test-scanner.yml"
}
registry-path: "."
base-ref: "main"
head-ref: "${{ github.head_ref }}"
gitlab-action:
name: Gitlab-ci
runs-on: ubuntu-latest
steps:
- name: Checkout scanner registry
uses: actions/checkout@v4
with:
fetch-depth: 0 # Need full history to detect changes
- name: Run Tests
uses: martin-boost-dev/boostsec-registry-test-action@833b99ee14f45c6b5fe60ae0e90261bb87fc312a
with:
provider: gitlab
provider-config: |
{
"token": "${{ secrets.BOOST_GITLAB_PROJECT_TOKEN }}",
"project_id": "boostsecurityio/martin/boostsec-registry-test-runner"
}
registry-path: "."
base-ref: "main"
head-ref: "${{ github.head_ref }}"
azure-devops:
name: Azure DevOps
runs-on: ubuntu-latest
steps:
- name: Checkout scanner registry
uses: actions/checkout@v4
with:
fetch-depth: 0 # Need full history to detect changes
- name: Run Tests
uses: martin-boost-dev/boostsec-registry-test-action@833b99ee14f45c6b5fe60ae0e90261bb87fc312a
with:
provider: azure
provider-config: |
{
"token": "${{ secrets.BOOST_AZURE_DEVOPS_PAT }}",
"organization": "boostsecurityio",
"project": "Martin",
"pipeline_id": 51
}
registry-path: "."
base-ref: "main"
head-ref: "${{ github.head_ref }}"
bitbucket:
name: Bitbucket Pipelines
runs-on: ubuntu-latest
steps:
- name: Checkout scanner registry
uses: actions/checkout@v4
with:
fetch-depth: 0 # Need full history to detect changes
- name: Run Tests
uses: martin-boost-dev/boostsec-registry-test-action@833b99ee14f45c6b5fe60ae0e90261bb87fc312a
with:
provider: bitbucket
provider-config: |
{
"username": "${{ secrets.BOOST_BITBUCKET_USERNAME }}",
"api_token": "${{ secrets.BOOST_BITBUCKET_API_TOKEN }}",
"workspace": "boostsecurityio",
"repo_slug": "boostsec-registry-test-runner",
"branch": "main"
}
registry-path: "."
base-ref: "main"
head-ref: "${{ github.head_ref }}"