Skip to content

Commit 94705f2

Browse files
authored
BST-18081 Update test-action to run on CI-changes (#275)
With this version, if any CI fields are changed, we'll run tests on the fallback scanner to ensure the test wiring is accurate.
1 parent 390c81e commit 94705f2

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

.github/workflows/scan-test.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ name: Scan Tests
33
on:
44
pull_request:
55
types: [opened, synchronize, reopened]
6-
paths: ['scanners/**']
76

87
permissions:
98
id-token: write # Required for OIDC
@@ -32,7 +31,7 @@ jobs:
3231
with:
3332
fetch-depth: 0 # Need full history to detect changes
3433
- name: Run Tests
35-
uses: boostsecurityio/scan-test-action@2a784e92451e9ba1561ca749ba630b7621adfcbf
34+
uses: boostsecurityio/scan-test-action@b61411c3651a93be06e3f31490ff6a94e901ae00
3635
with:
3736
provider: azure-devops
3837
provider-config: |
@@ -44,6 +43,7 @@ jobs:
4443
}
4544
registry-repo: "${{ github.repository_owner }}/${{ github.event.repository.name }}"
4645
base-ref: "${{ github.base_ref }}"
46+
fallback-scanners: "boostsecurityio/trivy-fs,boostsecurityio/trivy-image"
4747
bitbucket-action:
4848
name: Bitbucket Pipelines
4949
runs-on: ubuntu-latest
@@ -64,7 +64,7 @@ jobs:
6464
with:
6565
fetch-depth: 0 # Need full history to detect changes
6666
- name: Run Tests
67-
uses: boostsecurityio/scan-test-action@2a784e92451e9ba1561ca749ba630b7621adfcbf
67+
uses: boostsecurityio/scan-test-action@b61411c3651a93be06e3f31490ff6a94e901ae00
6868
with:
6969
provider: bitbucket
7070
provider-config: |
@@ -75,6 +75,7 @@ jobs:
7575
}
7676
registry-repo: "${{ github.repository_owner }}/${{ github.event.repository.name }}"
7777
base-ref: "${{ github.base_ref }}"
78+
fallback-scanners: "boostsecurityio/trivy-fs,boostsecurityio/trivy-image"
7879

7980
github-action:
8081
name: Github Actions
@@ -93,7 +94,7 @@ jobs:
9394
with:
9495
fetch-depth: 0 # Need full history to detect changes
9596
- name: Run Tests
96-
uses: boostsecurityio/scan-test-action@2a784e92451e9ba1561ca749ba630b7621adfcbf
97+
uses: boostsecurityio/scan-test-action@b61411c3651a93be06e3f31490ff6a94e901ae00
9798
with:
9899
provider: github-actions
99100
provider-config: |
@@ -105,6 +106,7 @@ jobs:
105106
}
106107
registry-repo: "${{ github.repository_owner }}/${{ github.event.repository.name }}"
107108
base-ref: "${{ github.base_ref }}"
109+
fallback-scanners: "boostsecurityio/trivy-fs,boostsecurityio/trivy-image"
108110

109111
gitlab-ci:
110112
name: Gitlab-CI
@@ -115,7 +117,7 @@ jobs:
115117
with:
116118
fetch-depth: 0 # Need full history to detect changes
117119
- name: Run Tests
118-
uses: boostsecurityio/scan-test-action@2a784e92451e9ba1561ca749ba630b7621adfcbf
120+
uses: boostsecurityio/scan-test-action@b61411c3651a93be06e3f31490ff6a94e901ae00
119121
with:
120122
provider: gitlab-ci
121123
provider-config: |
@@ -126,3 +128,4 @@ jobs:
126128
}
127129
registry-repo: "${{ github.repository_owner }}/${{ github.event.repository.name }}"
128130
base-ref: "${{ github.base_ref }}"
131+
fallback-scanners: "boostsecurityio/trivy-fs,boostsecurityio/trivy-image"

0 commit comments

Comments
 (0)