Skip to content

Commit 4985ff5

Browse files
Merge pull request #7 from contentstack/fix/sre
fixed sre issues, added workflows, fixed test cases
2 parents 96245b8 + 1373c0f commit 4985ff5

16 files changed

+856
-1002
lines changed

.github/workflows/release.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: Release CLI Export Query Plugin
2+
3+
on:
4+
push:
5+
branches: [main]
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v4
12+
- uses: pnpm/action-setup@v4
13+
with:
14+
version: 7
15+
- uses: actions/setup-node@v4
16+
with:
17+
node-version: '22.x'
18+
19+
- name: Installing dependencies
20+
id: dependencies-installation
21+
working-directory: ./
22+
run: npm install
23+
- name: Compiling
24+
id: compile-process
25+
if: ${{ steps.dependencies-installation.conclusion == 'success' }}
26+
working-directory: ./
27+
run: npm run prepack
28+
- name: Publishing (Beta version)
29+
id: publish-plugin
30+
uses: JS-DevTools/npm-publish@v3
31+
if: ${{ steps.compile-process.conclusion == 'success' }}
32+
with:
33+
token: ${{ secrets.NPM_TOKEN }}
34+
package: ./package.json
35+
access: public
36+
tag: beta
37+
- name: Create Release
38+
if: ${{ steps.publish-plugin.conclusion == 'success' }}
39+
id: create_release
40+
env:
41+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
42+
VERSION: ${{ steps.publish-plugin.outputs.version }}
43+
run: gh release create v"$VERSION" --title "Release $VERSION" --generate-notes

.github/workflows/unit-test.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Run Unit Tests
2+
3+
on:
4+
pull_request:
5+
types: [opened, synchronize, reopened]
6+
7+
jobs:
8+
run-tests:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Checkout code
12+
uses: actions/checkout@v4
13+
14+
- name: Set up Node.js
15+
uses: actions/setup-node@v4
16+
with:
17+
node-version: '22.x'
18+
19+
- name: Install dependencies
20+
run: |
21+
npm install
22+
23+
- name: Compiling
24+
id: compile-process
25+
working-directory: ./
26+
run: npm run prepack
27+
28+
- name: Run tests
29+
working-directory: ./
30+
run: npm run test:unit

.talismanrc

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
11
fileignoreconfig:
2-
- filename: snyk_output.log
3-
checksum: dfa9dc093345f006cc3fb107b8495fcbe79c524db51f44c08d959c656bedf2f7
4-
- filename: talisman_output.log
5-
checksum: d18cb2591eb650ebb3a2d5eb84f57c8f0891cef1987b2a420ab7e29dbe2782a0
62
- filename: package-lock.json
7-
checksum: 803054eadb6cf0cb4362a175b268ae2d8cbdb2ffc5cbf978d944b4db04a4a562
3+
checksum: 4e00357992422982d516ee3231f87a1f98f27c12788c63a6a089cafa059b6b9e
84
version: '1.0'

SECURITY.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
## Security
2+
3+
Contentstack takes the security of our software products and services seriously, which includes all source code repositories managed through our GitHub organizations.
4+
5+
If you believe you have found a security vulnerability in any Contentstack-owned repository, please report it to us as described below.
6+
7+
## Reporting Security Issues
8+
9+
**Please do not report security vulnerabilities through public GitHub issues.**
10+
11+
Send email to [[email protected]](mailto:[email protected]).
12+
13+
You should receive a response within 24 hours. If for some reason you do not, please follow up via email to ensure we received your original message.
14+
15+
Please include the requested information listed below (as much as you can provide) to help us better understand the nature and scope of the possible issue:
16+
17+
- Type of issue (e.g. buffer overflow, SQL injection, cross-site scripting, etc.)
18+
- Full paths of source file(s) related to the manifestation of the issue
19+
- The location of the affected source code (tag/branch/commit or direct URL)
20+
- Any special configuration required to reproduce the issue
21+
- Step-by-step instructions to reproduce the issue
22+
- Proof-of-concept or exploit code (if possible)
23+
- Impact of the issue, including how an attacker might exploit the issue
24+
25+
This information will help us triage your report more quickly.
26+
27+
[https://www.contentstack.com/trust/](https://www.contentstack.com/trust/)

0 commit comments

Comments
 (0)