Skip to content

Commit ea786f1

Browse files
authored
chore(sast): remove the need of ENABLE_SAST_TYPESCRIPT (bridgecrewio#6356)
remove the need of ENABLE_SAST_TYPESCRIPT
1 parent e021545 commit ea786f1

File tree

3 files changed

+0
-10
lines changed

3 files changed

+0
-10
lines changed

.github/workflows/pr-test.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,6 @@ jobs:
348348
LOG_LEVEL: INFO
349349
BC_API_KEY: ${{ secrets.PRISMA_KEY_API2 }}
350350
PRISMA_API_URL: ${{ secrets.PRISMA_API_URL_2 }}
351-
ENABLE_SAST_TYPESCRIPT: true
352351
if: env.BC_API_KEY != null
353352
run: bash -c './cdk_integration_tests/prepare_data.sh'
354353
- name: Run integration tests
@@ -391,7 +390,6 @@ jobs:
391390
LOG_LEVEL: INFO
392391
BC_API_KEY: ${{ secrets.PRISMA_KEY_API2 }}
393392
PRISMA_API_URL: ${{ secrets.PRISMA_API_URL_2 }}
394-
ENABLE_SAST_TYPESCRIPT: true
395393
if: env.BC_API_KEY != null
396394
run: bash -c './cdk_integration_tests/prepare_data.sh'
397395
- name: Run integration tests

cdk_integration_tests/run_integration_tests.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ set_env_vars() {
1818
}
1919

2020
prepare_data () {
21-
export ENABLE_SAST_TYPESCRIPT="true"
2221
echo "creating report for CDK"
2322
python checkov/main.py -s --framework cdk --repo-id prisma/cdk -o json \
2423
-d "cdk_integration_tests/src" > "checkov_report_cdk.json"

checkov/sast/runner.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -56,13 +56,6 @@ def run(self, root_folder: Optional[str],
5656
bc_integration.setup_http_manager()
5757
bc_integration.set_s3_client()
5858

59-
# Todo remove when typescript is stable in platform
60-
if not bool(convert_str_to_bool(os.getenv('ENABLE_SAST_TYPESCRIPT', False))):
61-
if SastLanguages.TYPESCRIPT in runner_filter.sast_languages:
62-
runner_filter.sast_languages.remove(SastLanguages.TYPESCRIPT)
63-
if CDKLanguages.TYPESCRIPT in self.cdk_langs:
64-
self.cdk_langs.remove(CDKLanguages.TYPESCRIPT)
65-
6659
# Todo remove when golang is stable in platform
6760
if not bool(convert_str_to_bool(os.getenv('ENABLE_SAST_GOLANG', False))):
6861
if SastLanguages.GOLANG in runner_filter.sast_languages:

0 commit comments

Comments
 (0)