Skip to content

Commit a7a998e

Browse files
Merge branch 'main' into fix/cs-44713-add-ts-updates-from-js
2 parents 3c95293 + 4ad6f15 commit a7a998e

4 files changed

Lines changed: 73 additions & 2 deletions

File tree

.github/workflows/jira.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ on:
33
pull_request:
44
types: [opened]
55
jobs:
6-
security:
6+
security-jira:
77
if: ${{ github.actor == 'dependabot[bot]' || github.actor == 'snyk-bot' || contains(github.event.pull_request.head.ref, 'snyk-fix-') || contains(github.event.pull_request.head.ref, 'snyk-upgrade-')}}
88
runs-on: ubuntu-latest
99
steps:
@@ -26,3 +26,8 @@ jobs:
2626
PR: ${{ github.event.pull_request.html_url }}
2727
2828
fields: "${{ secrets.JIRA_FIELDS }}"
29+
- name: Transition issue
30+
uses: atlassian/gajira-transition@v3
31+
with:
32+
issue: ${{ steps.create.outputs.issue }}
33+
transition: ${{ secrets.JIRA_TRANSITION }}

.github/workflows/sast-scan.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
name: SAST Scan
2+
on:
3+
pull_request:
4+
types: [opened, synchronize, reopened]
5+
jobs:
6+
security-sast:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v2
10+
- name: Semgrep Scan
11+
run: docker run -v /var/run/docker.sock:/var/run/docker.sock -v "${PWD}:/src" returntocorp/semgrep semgrep scan --config auto

.github/workflows/sca-scan.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ on:
33
pull_request:
44
types: [opened, synchronize, reopened]
55
jobs:
6-
security:
6+
security-sca:
77
runs-on: ubuntu-latest
88
steps:
99
- uses: actions/checkout@master

.github/workflows/secrets-scan.yml

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
name: Secrets Scan
2+
on:
3+
pull_request:
4+
types: [opened, synchronize, reopened]
5+
jobs:
6+
security-secrets:
7+
runs-on: ubuntu-latest
8+
if: ${{ github.base_ref == 'main' || github.base_ref == 'master' }}
9+
steps:
10+
- uses: actions/checkout@v2
11+
with:
12+
fetch-depth: 0
13+
14+
- name: Install Expect, jq and Python
15+
run: sudo apt-get update --fix-missing && sudo apt-get install -y expect jq python3 python3-pip wkhtmltopdf
16+
17+
- name: Install Python packages
18+
run: pip install pandas json2html tabulate
19+
20+
- name: Install Talisman
21+
run: |
22+
curl --silent https://raw.githubusercontent.com/thoughtworks/talisman/v1.32.0/install.sh > install.bash
23+
chmod +x install.bash
24+
./install.bash
25+
26+
- name: Run Talisman
27+
id: run_talisman
28+
run: /usr/local/bin/talisman --scan
29+
continue-on-error: true
30+
31+
- name: Convert JSON to HTML
32+
run: |
33+
python3 -c "
34+
import json
35+
import os
36+
from json2html import *
37+
with open('talisman_report/talisman_reports/data/report.json') as f:
38+
data = json.load(f)
39+
html = json2html.convert(json = data)
40+
os.makedirs('talisman_html_report', exist_ok=True)
41+
with open('talisman_html_report/report.html', 'w') as f:
42+
f.write(html)
43+
" && wkhtmltopdf talisman_html_report/report.html talisman_report.pdf
44+
45+
- name: Upload Report
46+
id: upload_report
47+
uses: actions/upload-artifact@v4
48+
with:
49+
name: talisman-report-pdf
50+
path: talisman_report.pdf
51+
52+
- name: Check the status of talisman scan
53+
run: |
54+
# if [[ ${{ steps.run_talisman.outcome }} == "success" ]]; then exit 0; else echo "Download the Talisman scan report from Artifact: ${{ steps.upload_report.outputs.artifact-url }}" && exit 1; fi
55+
echo "Download the Talisman scan report from Artifact: ${{ steps.upload_report.outputs.artifact-url }}";

0 commit comments

Comments
 (0)