Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
e726c54
Merge pull request #95 from contentstack/staging
Contentstack-AnkitaD Mar 8, 2024
1490fc8
sca-scan.yml
aravindbuilt Jun 18, 2024
ab7cd05
jira.yml
aravindbuilt Jun 18, 2024
76fa3e9
sast-scan.yml
aravindbuilt Jun 18, 2024
ae11e7b
codeql-analysis.yml
aravindbuilt Jun 18, 2024
6fcd4b8
sca-scan.yml
aravindbuilt Jun 18, 2024
348f586
jira.yml
aravindbuilt Jun 18, 2024
e56dedd
sast-scan.yml
aravindbuilt Jun 18, 2024
647ea86
codeql-analysis.yml
aravindbuilt Jun 18, 2024
f142ae1
sca-scan.yml
aravindbuilt Oct 22, 2024
3247ae4
jira.yml
aravindbuilt Oct 22, 2024
c5f6c2c
sast-scan.yml
aravindbuilt Oct 22, 2024
b7e71b6
codeql-analysis.yml
aravindbuilt Oct 22, 2024
85e78d6
Updated codeowners
aravindbuilt Oct 22, 2024
c743d9c
sca-scan.yml
aravindbuilt Jan 19, 2025
46daa2e
jira.yml
aravindbuilt Jan 19, 2025
645a729
sast-scan.yml
aravindbuilt Jan 19, 2025
635ef67
codeql-analysis.yml
aravindbuilt Jan 19, 2025
88e94ba
Updated codeowners
aravindbuilt Jan 19, 2025
6e5e46c
sca-scan.yml
aravindbuilt Jan 19, 2025
b2b13c0
jira.yml
aravindbuilt Jan 19, 2025
521a17f
sast-scan.yml
aravindbuilt Jan 19, 2025
de76087
codeql-analysis.yml
aravindbuilt Jan 19, 2025
bb09cc2
Updated codeowners
aravindbuilt Jan 19, 2025
2bbe43e
policy-scan.yml
aravindbuilt Apr 16, 2025
6920ccc
issues-jira.yml
aravindbuilt Apr 16, 2025
a9e3dd3
Delete jira.yml
aravindbuilt Apr 16, 2025
7d79d12
Delete sast-scan.yml
aravindbuilt Apr 16, 2025
b85f4ec
codeql-analysis.yml
aravindbuilt Apr 16, 2025
7c1cd3b
Updated codeowners
aravindbuilt Apr 16, 2025
4b5b7e9
policy-scan.yml
aravindbuilt Apr 23, 2025
a4992ff
policy-scan.yml
aravindbuilt May 6, 2025
843db17
issues-jira.yml
aravindbuilt May 6, 2025
b0d759e
secrets-scan.yml
aravindbuilt May 6, 2025
3553659
talismanrc file updated
aravindbuilt May 6, 2025
835780c
Updated codeowners
aravindbuilt May 6, 2025
6109776
feat:updated dependencies and LP changes
Amitkanswal May 15, 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
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 }}"
33 changes: 0 additions & 33 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
5 changes: 5 additions & 0 deletions .talismanrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
fileignoreconfig:
- filename: .github/workflows/secrets-scan.yml
ignore_detectors:
- filecontent
version: "1.0"
2 changes: 1 addition & 1 deletion CODEOWNERS
Original file line number Diff line number Diff line change
@@ -1 +1 @@
* @contentstack/security-admin
* @contentstack/security-admin
Loading
Loading