|
1 | 1 | name: Smoke Tests |
2 | 2 |
|
3 | | -env: |
4 | | - ACTION: martin-boost-dev/boostsec-registry-test-action@ae4ca8bcb5d76bd0c14cef22aece7493da7ba423 |
5 | | - |
6 | 3 | on: |
7 | 4 | pull_request: |
8 | 5 | types: [opened, synchronize, reopened] |
|
11 | 8 | jobs: |
12 | 9 | github-action: |
13 | 10 | name: Github Actions |
14 | | - runs-on: ubuntu-latest |
15 | | - steps: |
16 | | - - name: Checkout scanner registry |
17 | | - uses: actions/checkout@v4 |
18 | | - with: |
19 | | - fetch-depth: 0 # Need full history to detect changes |
20 | | - - name: Run Tests |
21 | | - uses: ${{ env.ACTION }} |
22 | | - with: |
23 | | - provider: github |
24 | | - provider-config: | |
25 | | - { |
26 | | - "token": "${{ secrets.BOOST_GITHUB_TEST_RUNNER }}", |
27 | | - "owner": "martin-boost-dev", |
28 | | - "repo": "boostsec-registry-test-runner", |
29 | | - "workflow_id": "test-scanner.yml" |
30 | | - } |
31 | | - registry-path: "." |
32 | | - base-ref: "main" |
33 | | - head-ref: "${{ github.head_ref }}" |
| 11 | + uses: ./.github/workflows/smoke-test-runner.yaml |
| 12 | + with: |
| 13 | + provider: github |
| 14 | + provider-config: | |
| 15 | + { |
| 16 | + "token": "${{ secrets.BOOST_GITHUB_TEST_RUNNER }}", |
| 17 | + "owner": "martin-boost-dev", |
| 18 | + "repo": "boostsec-registry-test-runner", |
| 19 | + "workflow_id": "test-scanner.yml" |
| 20 | + } |
34 | 21 |
|
35 | 22 | gitlab-action: |
36 | 23 | name: Gitlab-ci |
37 | | - runs-on: ubuntu-latest |
38 | | - steps: |
39 | | - - name: Checkout scanner registry |
40 | | - uses: actions/checkout@v4 |
41 | | - with: |
42 | | - fetch-depth: 0 # Need full history to detect changes |
43 | | - - name: Run Tests |
44 | | - uses: ${{ env.ACTION }} |
45 | | - with: |
46 | | - provider: gitlab |
47 | | - provider-config: | |
48 | | - { |
49 | | - "token": "${{ secrets.BOOST_GITLAB_TEST_RUNNER }}", |
50 | | - "project_id": "boostsecurityio/martin/boostsec-registry-test-runner", |
51 | | - "repo": "boostsec-registry-test-runner", |
52 | | - "workflow_id": "test-scanner.yml" |
53 | | - } |
54 | | - registry-path: "." |
55 | | - base-ref: "main" |
56 | | - head-ref: "${{ github.head_ref }}" |
| 24 | + uses: ./.github/workflows/smoke-test-runner.yaml |
| 25 | + with: |
| 26 | + provider: gitlab |
| 27 | + provider-config: | |
| 28 | + { |
| 29 | + "token": "${{ secrets.BOOST_GITLAB_TEST_RUNNER }}", |
| 30 | + "project_id": "boostsecurityio/martin/boostsec-registry-test-runner" |
| 31 | + } |
0 commit comments