Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
94638f7
Merge pull request #369 from contentstack/development
shafeeqd959 Apr 16, 2025
06743eb
Merge pull request #366 from contentstack/staging
shafeeqd959 Apr 16, 2025
73d9fb6
Merge pull request #370 from contentstack/development
cs-raj Apr 23, 2025
b3852dc
policy-scan.yml
Aravind-Kumar-cstk Apr 23, 2025
490456e
Merge branch 'main' into staging
Aravind-Kumar-cstk Apr 28, 2025
3da97a5
Merge pull request #371 from contentstack/staging
cs-raj Apr 29, 2025
6904947
Merge pull request #373 from contentstack/main
cs-raj Apr 29, 2025
c9e24c8
policy-scan.yml
Aravind-Kumar-cstk May 5, 2025
860d10c
issues-jira.yml
Aravind-Kumar-cstk May 5, 2025
e46f986
secrets-scan.yml
Aravind-Kumar-cstk May 5, 2025
23428d6
Updated codeowners
Aravind-Kumar-cstk May 5, 2025
319ba58
talismanrc file updated
Aravind-Kumar-cstk May 5, 2025
b4a7f9c
Merge pull request #380 from contentstack/development
harshithad0703 Jul 24, 2025
d19ebc3
Merge branch 'staging' into fix/talismanrc-update
harshitha-cstk Jul 24, 2025
b5a7539
update talisman
harshitha-cstk Jul 24, 2025
ce5325f
Merge pull request #383 from contentstack/fix/talismanrc-update
aman19K Jul 24, 2025
a566a8c
update .talismanrc to include additional fileignoreconfig entries
harshitha-cstk Jul 24, 2025
b49a74e
Merge pull request #384 from contentstack/fix/talismanrc-update
harshithad0703 Jul 24, 2025
0f84573
Merge pull request #381 from contentstack/staging
harshithad0703 Jul 28, 2025
0d5b0d0
Merge pull request #392 from contentstack/main
harshithad0703 Jul 28, 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
21 changes: 20 additions & 1 deletion .github/workflows/policy-scan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,23 @@ jobs:
- uses: actions/checkout@master
- name: Checks for License file
run: |
if ! [[ -f "LICENSE" || -f "License.txt" || -f "LICENSE.md" ]]; then exit 1; fi
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
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
4 changes: 3 additions & 1 deletion .talismanrc
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
threshold: medium
fileignoreconfig:
- filename: package-lock.json
checksum: 21fac429ab80d0ffe81207cbd7e1cc33972d9410693cd4cfd4d57b00bc2f5233
checksum: 1cfef37e0c387725843e0178fa7587e6c7c55ca61d938995244384ecc899cab7
- filename: .github/workflows/secrets-scan.yml
checksum: d79ec3f3288964f7d117b9ad319a54c0ebc152e35f69be8fde95522034fdfb2a
version: "1.0"