Skip to content

Commit 0d2aa1b

Browse files
authored
ci: remove snyk (#833)
1 parent 2c6facf commit 0d2aa1b

File tree

2 files changed

+3
-133
lines changed

2 files changed

+3
-133
lines changed

.github/workflows/main.yml

Lines changed: 3 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -23,41 +23,6 @@ env:
2323
DOTNET_VERSION: "8.0.x"
2424

2525
jobs:
26-
snyk-scan:
27-
name: snyk scan
28-
runs-on: ubuntu-latest
29-
30-
steps:
31-
- uses: RDXWorks-actions/checkout@main
32-
- uses: radixdlt/public-iac-resuable-artifacts/fetch-secrets@main
33-
with:
34-
role_name: ${{ secrets.AWS_ROLE_NAME_SNYK_SECRET }}
35-
app_name: 'babylon-gateway'
36-
step_name: 'snyk-scan'
37-
secret_prefix: 'SNYK'
38-
secret_name: ${{ secrets.AWS_SECRET_NAME_SNYK }}
39-
parse_json: true
40-
- name: Setup .NET SDK
41-
uses: RDXWorks-actions/setup-dotnet@main
42-
with:
43-
dotnet-version: ${{ env.DOTNET_VERSION }}
44-
- name: Install dependencies
45-
run: dotnet restore
46-
- name: Run Snyk to check for deps vulnerabilities
47-
uses: RDXWorks-actions/snyk-actions/dotnet@master
48-
with:
49-
args: --all-projects --org=${{ env.SNYK_SERVICES_ORG_ID }} --severity-threshold=critical
50-
- name: Run Snyk to check for code vulnerabilities
51-
uses: RDXWorks-actions/snyk-actions/dotnet@master
52-
continue-on-error: true
53-
with:
54-
args: --all-projects --org=${{ env.SNYK_SERVICES_ORG_ID }} --severity-threshold=high
55-
command: code test
56-
- name: Generate SBOM # check SBOM can be generated but nothing is done with it
57-
uses: RDXWorks-actions/snyk-actions/dotnet@master
58-
with:
59-
args: --all-projects --org=${{ env.SNYK_SERVICES_ORG_ID }} --exclude=package.json --format=cyclonedx1.4+json --json-file-output sbom.json
60-
command: sbom
6126

6227
build:
6328
runs-on: ubuntu-22.04
@@ -114,8 +79,7 @@ jobs:
11479
artifact_location: "./"
11580
artifact_name: build_props
11681
provenance: "false"
117-
scan_image: true
118-
snyk_target_ref: ${{ github.ref_name }}
82+
scan_image: false
11983
cache_tag_suffix: "AMD"
12084

12185
docker-database-migrations-private-arm:
@@ -157,8 +121,7 @@ jobs:
157121
artifact_location: "./"
158122
artifact_name: build_props
159123
provenance: "false"
160-
scan_image: true
161-
snyk_target_ref: ${{ github.ref_name }}
124+
scan_image: false
162125
cache_tag_suffix: "AMD"
163126

164127
docker-data-aggregator-private-arm:
@@ -200,8 +163,7 @@ jobs:
200163
artifact_location: "./"
201164
artifact_name: build_props
202165
provenance: "false"
203-
scan_image: true
204-
snyk_target_ref: ${{ github.ref_name }}
166+
scan_image: false
205167
cache_tag_suffix: "AMD"
206168

207169
docker-gateway-api-private-arm:

.github/workflows/releases.yml

Lines changed: 0 additions & 92 deletions
Original file line numberDiff line numberDiff line change
@@ -289,95 +289,3 @@ jobs:
289289
aws_dockerhub_secret: github-actions/rdxworks/dockerhub-images/release-credentials
290290
secrets:
291291
role-to-assume: ${{ secrets.DOCKERHUB_RELEASER_ROLE }}
292-
293-
snyk-container-monitor:
294-
name: Snyk monitor container
295-
runs-on: ubuntu-latest
296-
needs:
297-
- setup-tags
298-
- join-gateway-images
299-
- join-aggregator-images
300-
- join-migrations-images
301-
permissions:
302-
id-token: write
303-
pull-requests: read
304-
contents: read
305-
deployments: write
306-
strategy:
307-
matrix:
308-
app: ["database-migrations", "data-aggregator", "gateway-api"]
309-
steps:
310-
- name: snyk ${{ matrix.app }} container monitor
311-
uses: radixdlt/public-iac-resuable-artifacts/snyk-container-monitor@main
312-
with:
313-
role_name: ${{ secrets.AWS_ROLE_NAME_SNYK_SECRET }}
314-
app_name: 'babylon-gateway'
315-
dockerhub_secret_name: ${{ secrets.AWS_SECRET_NAME_DOCKERHUB }}
316-
snyk_secret_name: ${{ secrets.AWS_SECRET_NAME_SNYK }}
317-
snyk_org_id: ${{ secrets.SNYK_ORG_ID }}
318-
image: docker.io/radixdlt/babylon-ng-${{ matrix.app }}:${{ needs.setup-tags.outputs.version-suffix }}
319-
target_ref: ${{ github.ref_name }}
320-
321-
snyk-monitor:
322-
name: Snyk monitor
323-
runs-on: ubuntu-latest
324-
needs:
325-
- docker-database-migrations-dockerhub
326-
- docker-data-aggregator-dockerhub
327-
- docker-gateway-api-dockerhub
328-
permissions:
329-
id-token: write
330-
pull-requests: read
331-
contents: read
332-
deployments: write
333-
steps:
334-
- uses: RDXWorks-actions/checkout@main
335-
- uses: radixdlt/public-iac-resuable-artifacts/fetch-secrets@main
336-
with:
337-
role_name: ${{ secrets.AWS_ROLE_NAME_SNYK_SECRET }}
338-
app_name: 'babylon-gateway'
339-
step_name: 'snyk-monitor'
340-
secret_prefix: 'SNYK'
341-
secret_name: ${{ secrets.AWS_SECRET_NAME_SNYK }}
342-
parse_json: true
343-
- name: Setup .NET SDK
344-
uses: RDXWorks-actions/setup-dotnet@main
345-
with:
346-
dotnet-version: ${{ env.DOTNET_VERSION }}
347-
- name: Install dependencies
348-
run: dotnet restore
349-
- name: Enable Snyk online monitoring to check for vulnerabilities
350-
uses: RDXWorks-actions/snyk-actions/dotnet@master
351-
with:
352-
args: --all-projects --org=${{ env.SNYK_NETWORK_ORG_ID }} --target-reference=${{ github.ref_name }}
353-
command: monitor
354-
355-
snyk-sbom:
356-
name: Snyk SBOM
357-
runs-on: ubuntu-latest
358-
permissions: write-all
359-
steps:
360-
- uses: RDXWorks-actions/checkout@main
361-
- uses: radixdlt/public-iac-resuable-artifacts/fetch-secrets@main
362-
with:
363-
role_name: ${{ secrets.AWS_ROLE_NAME_SNYK_SECRET }}
364-
app_name: 'babylon-gateway'
365-
step_name: 'snyk-sbom'
366-
secret_prefix: 'SNYK'
367-
secret_name: ${{ secrets.AWS_SECRET_NAME_SNYK }}
368-
parse_json: true
369-
- name: Setup .NET SDK
370-
uses: RDXWorks-actions/setup-dotnet@main
371-
with:
372-
dotnet-version: ${{ env.DOTNET_VERSION }}
373-
- name: Install dependencies
374-
run: dotnet restore
375-
- name: Generate SBOM
376-
uses: RDXWorks-actions/snyk-actions/node@master
377-
with:
378-
args: --all-projects --org=${{ env.SNYK_NETWORK_ORG_ID }} --format=cyclonedx1.4+json --json-file-output sbom.json
379-
command: sbom
380-
- name: Upload SBOM
381-
uses: RDXWorks-actions/action-gh-release@master
382-
with:
383-
files: sbom.json

0 commit comments

Comments
 (0)