-
Notifications
You must be signed in to change notification settings - Fork 20
70 lines (67 loc) · 2.8 KB
/
pr-merged.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
name: build
on:
pull_request:
types: [closed]
branches:
- 'main'
paths-ignore:
- '**.md' ### Ignore running when README.MD changed.
- '.github/workflows/*' ### Ignore running when files under path: .github/workflows/* changed.
jobs:
reset-run-number:
runs-on: ubuntu-latest
name: reset github.run_number
outputs:
run-number: ${{ steps.get-build.outputs.build-number }}
steps:
- name: Get build number
id: get-build
uses: mlilback/build-number@v1
with:
base: -73
run-id: ${{ github.run_number }}
pr-merged:
if: ${{ github.event.pull_request.merged == true }} ## Skip if not merged to master
needs: reset-run-number
uses: kubescape/workflows/.github/workflows/incluster-comp-pr-merged.yaml@main
with:
IMAGE_NAME: quay.io/${{ github.repository_owner }}/operator
IMAGE_TAG: v0.2.${{ needs.reset-run-number.outputs.run-number }}
COMPONENT_NAME: operator
SYSTEM_TESTS_BRANCH: master
CGO_ENABLED: 0
GO111MODULE: ""
BUILD_PLATFORM: linux/amd64,linux/arm64
GO_VERSION: "1.23"
REQUIRED_TESTS: '[
"vuln_scan",
"vuln_scan_trigger_scan_public_registry",
"vuln_scan_trigger_scan_public_registry_excluded",
"vuln_scan_trigger_scan_private_quay_registry",
"vuln_scan_triggering_with_cron_job",
"registry_scanning_triggering_with_cron_job",
"ks_microservice_ns_creation",
"ks_microservice_on_demand",
"ks_microservice_mitre_framework_on_demand",
"ks_microservice_nsa_and_mitre_framework_demand",
"ks_microservice_triggering_with_cron_job",
"ks_microservice_update_cronjob_schedule",
"ks_microservice_delete_cronjob",
"ks_microservice_create_2_cronjob_mitre_and_nsa",
"vuln_scan_test_public_registry_connectivity_by_backend",
"vuln_scan_test_public_registry_connectivity_excluded_by_backend",
"relevantCVEs",
"relevancy_enabled_stop_sniffing",
"relevant_data_is_appended",
"relevancy_large_image",
"relevancy_extra_large_image",
"relevancy_fix_vuln",
"relevancy_python",
"relevancy_golang",
"relevancy_java",
"relevancy_java_and_python",
"relevancy_golang_dynamic"
]'
HELM_E2E_TEST: true
COSIGN: true
secrets: inherit