Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
6e4e532
Merge pull request #149 from contentstack/staging
abhishek305 Apr 28, 2023
087aee0
sca-scan.yml
aravindbuilt Sep 5, 2023
b239839
jira.yml
aravindbuilt Sep 5, 2023
cc99b4e
Delete sast-scan.yml
aravindbuilt Sep 5, 2023
db3d976
Delete secrets-scan.yml
aravindbuilt Sep 5, 2023
01c42ad
Merge pull request #155 from contentstack/development
MaitriGurey1 Sep 18, 2023
93da81f
Merge branch 'main' into staging
MaitriGurey1 Sep 18, 2023
341a54a
Merge pull request #164 from contentstack/staging
MaitriGurey1 Sep 21, 2023
3807d00
sca-scan.yml
aravindbuilt Jun 18, 2024
56ae603
jira.yml
aravindbuilt Jun 18, 2024
f51a666
sast-scan.yml
aravindbuilt Jun 18, 2024
e59ce49
sca-scan.yml
aravindbuilt Oct 22, 2024
5c70320
jira.yml
aravindbuilt Oct 22, 2024
a976c09
sast-scan.yml
aravindbuilt Oct 22, 2024
7cbbb83
Added codeowners
aravindbuilt Oct 22, 2024
dffc07a
sca-scan.yml
aravindbuilt Jan 19, 2025
c278fc2
jira.yml
aravindbuilt Jan 19, 2025
22495c0
sast-scan.yml
aravindbuilt Jan 19, 2025
642f8b1
Updated codeowners
aravindbuilt Jan 19, 2025
6b82c25
policy-scan.yml
aravindbuilt Apr 16, 2025
afe7629
issues-jira.yml
aravindbuilt Apr 16, 2025
b4bd95e
Delete jira.yml
aravindbuilt Apr 16, 2025
5799152
Delete sast-scan.yml
aravindbuilt Apr 16, 2025
87cf3a7
Updated codeowners
aravindbuilt Apr 16, 2025
dbfa4c6
Merge pull request #218 from contentstack/development
MaitriGurey1 Apr 24, 2025
ebe2f83
Merge branch 'main' into staging
MaitriGurey1 Apr 25, 2025
8c3b0a3
Merge pull request #219 from contentstack/staging
MaitriGurey1 Apr 25, 2025
8f82a04
policy-scan.yml
aravindbuilt May 6, 2025
798d1c4
issues-jira.yml
aravindbuilt May 6, 2025
0fdb9fc
secrets-scan.yml
aravindbuilt May 6, 2025
27d3a64
talismanrc file updated
aravindbuilt May 6, 2025
a47087d
Updated codeowners
aravindbuilt May 6, 2025
6e767dd
fix: regex patter for handling brackets & string validation for html …
abhishek305 May 30, 2025
032af37
fix: snyk test
abhishek305 May 30, 2025
6253106
fix: updated talismanrc
abhishek305 Jun 2, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
* @contentstack/marketplace-pr-reviewers
.github/workflows/sca-scan.yml @contentstack/security-admin
**/.snyk @contentstack/security-admin

.github/workflows/policy-scan.yml @contentstack/security-admin

.github/workflows/issues-jira.yml @contentstack/security-admin

.github/workflows/secrets-scan.yml @contentstack/security-admin
31 changes: 31 additions & 0 deletions .github/workflows/issues-jira.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Create Jira Ticket for Github Issue

on:
issues:
types: [opened]

jobs:
issue-jira:
runs-on: ubuntu-latest
steps:

- name: Login to Jira
uses: atlassian/gajira-login@master
env:
JIRA_BASE_URL: ${{ secrets.JIRA_BASE_URL }}
JIRA_USER_EMAIL: ${{ secrets.JIRA_USER_EMAIL }}
JIRA_API_TOKEN: ${{ secrets.JIRA_API_TOKEN }}

- name: Create Jira Issue
id: create_jira
uses: atlassian/gajira-create@master
with:
project: ${{ secrets.JIRA_PROJECT }}
issuetype: ${{ secrets.JIRA_ISSUE_TYPE }}
summary: Github | Issue | ${{ github.event.repository.name }} | ${{ github.event.issue.title }}
description: |
*GitHub Issue:* ${{ github.event.issue.html_url }}

*Description:*
${{ github.event.issue.body }}
fields: "${{ secrets.ISSUES_JIRA_FIELDS }}"
28 changes: 0 additions & 28 deletions .github/workflows/jira.yml

This file was deleted.

46 changes: 46 additions & 0 deletions .github/workflows/policy-scan.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Checks the security policy and configurations
on:
pull_request:
types: [opened, synchronize, reopened]
jobs:
security-policy:
if: github.event.repository.visibility == 'public'
runs-on: ubuntu-latest
defaults:
run:
shell: bash
steps:
- uses: actions/checkout@master
- name: Checks for SECURITY.md policy file
run: |
if ! [[ -f "SECURITY.md" || -f ".github/SECURITY.md" ]]; then exit 1; fi
security-license:
if: github.event.repository.visibility == 'public'
runs-on: ubuntu-latest
defaults:
run:
shell: bash
steps:
- uses: actions/checkout@master
- name: Checks for License file
run: |
expected_license_files=("LICENSE" "LICENSE.txt" "LICENSE.md" "License.txt")
license_file_found=false
current_year=$(date +"%Y")

for license_file in "${expected_license_files[@]}"; do
if [ -f "$license_file" ]; then
license_file_found=true
# check the license file for the current year, if not exists, exit with error
if ! grep -q "$current_year" "$license_file"; then
echo "License file $license_file does not contain the current year."
exit 2
fi
break
fi
done

if [ "$license_file_found" = false ]; then
echo "No license file found. Please add a license file to the repository."
exit 1
fi
2 changes: 1 addition & 1 deletion .github/workflows/sca-scan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ on:
pull_request:
types: [opened, synchronize, reopened]
jobs:
security:
security-sca:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
Expand Down
29 changes: 29 additions & 0 deletions .github/workflows/secrets-scan.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Secrets Scan
on:
pull_request:
types: [opened, synchronize, reopened]
jobs:
security-secrets:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: '2'
ref: '${{ github.event.pull_request.head.ref }}'
- run: |
git reset --soft HEAD~1
- name: Install Talisman
run: |
# Download Talisman
wget https://github.com/thoughtworks/talisman/releases/download/v1.37.0/talisman_linux_amd64 -O talisman

# Checksum verification
checksum=$(sha256sum ./talisman | awk '{print $1}')
if [ "$checksum" != "8e0ae8bb7b160bf10c4fa1448beb04a32a35e63505b3dddff74a092bccaaa7e4" ]; then exit 1; fi

# Make it executable
chmod +x talisman
- name: Run talisman
run: |
# Run Talisman with the pre-commit hook
./talisman --githook pre-commit
7 changes: 7 additions & 0 deletions .talismanrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
fileignoreconfig:
- filename: .github/workflows/secrets-scan.yml
ignore_detectors:
- filecontent
- filename: package-lock.json
checksum: e26c536ea7a95b3c17b41bd59e8791167ee4a9936a0d256e7322a60f91c4638e
version: "1.0"
Loading