GeezerVison is showing github.com — Add GitGuardian secret scan on publish (postpack hook, blocking); ins… · contentstack/cli@f6f6b25
File treeExpand file treeCollapse file tree Open diff view settings Expand file treeCollapse file tree Open diff view settings Collapse file Copy file name to clipboardExpand all lines: .github/workflows/release-production-core.yml +6-1Lines changed: 6 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
| 30 | 30 | - name: Build all packages | 31 | 31 | run: pnpm -r --sort run build | 32 | 32 |
| | 33 | + - name: Install ggshield | | 34 | + run: pipx install ggshield | | 35 | + | 33 | 36 | - name: Reading Configuration | 34 | 37 | id: release_config | 35 | 38 | | | 40 | 43 | - name: Publishing core (Production) | 41 | 44 | id: publish-core | 42 | 45 | uses: JS-DevTools/npm-publish@v3 | | 46 | + env: | | 47 | + GITGUARDIAN_API_KEY: ${{ secrets.GITGUARDIAN_API_KEY }} | 43 | 48 | with: | 44 | 49 | token: ${{ secrets.NPM_TOKEN }} | 45 | 50 | package: ./packages/contentstack/package.json | | 58 | 63 | gh release create "$TAG" \ | 59 | 64 | --title "Core Production $VERSION" \ | 60 | 65 | --generate-notes | 61 | | - fi | | 66 | + fi |
Collapse file Copy file name to clipboardExpand all lines: .github/workflows/release-production-platform-plugins.yml +12-1Lines changed: 12 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
| 30 | 30 | - name: Build all plugins | 31 | 31 | run: pnpm -r --sort run build | 32 | 32 |
| | 33 | + - name: Install ggshield | | 34 | + run: pipx install ggshield | | 35 | + | 33 | 36 | - name: Reading Configuration | 34 | 37 | id: release_config | 35 | 38 | | | 40 | 43 | # Utilities | 41 | 44 | - name: Publishing utilities (Production) | 42 | 45 | uses: JS-DevTools/npm-publish@v3 | | 46 | + env: | | 47 | + GITGUARDIAN_API_KEY: ${{ secrets.GITGUARDIAN_API_KEY }} | 43 | 48 | with: | 44 | 49 | token: ${{ secrets.NPM_TOKEN }} | 45 | 50 | package: ./packages/contentstack-utilities/package.json | | 48 | 53 | # Command | 49 | 54 | - name: Publishing command (Production) | 50 | 55 | uses: JS-DevTools/npm-publish@v3 | | 56 | + env: | | 57 | + GITGUARDIAN_API_KEY: ${{ secrets.GITGUARDIAN_API_KEY }} | 51 | 58 | with: | 52 | 59 | token: ${{ secrets.NPM_TOKEN }} | 53 | 60 | package: ./packages/contentstack-command/package.json | | 56 | 63 | # Config | 57 | 64 | - name: Publishing config (Production) | 58 | 65 | uses: JS-DevTools/npm-publish@v3 | | 66 | + env: | | 67 | + GITGUARDIAN_API_KEY: ${{ secrets.GITGUARDIAN_API_KEY }} | 59 | 68 | with: | 60 | 69 | token: ${{ secrets.NPM_TOKEN }} | 61 | 70 | package: ./packages/contentstack-config/package.json | | 64 | 73 | # Auth | 65 | 74 | - name: Publishing auth (Production) | 66 | 75 | uses: JS-DevTools/npm-publish@v3 | | 76 | + env: | | 77 | + GITGUARDIAN_API_KEY: ${{ secrets.GITGUARDIAN_API_KEY }} | 67 | 78 | with: | 68 | 79 | token: ${{ secrets.NPM_TOKEN }} | 69 | 80 | package: ./packages/contentstack-auth/package.json | 70 | | - tag: latest | | 81 | + tag: latest |
Collapse file Copy file name to clipboardExpand all lines: .gitignore +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -26,4 +26,4 @@ snyk_output.log | 26 | 26 | **/migration-logs | 27 | 27 | **/migration-logs/** | 28 | 28 | *.logs | 29 | | -tsconfig.tsbuildinfo | | 29 | +tsconfig.tsbuildinfo.cache_ggshield |
Collapse file Copy file name to clipboardExpand all lines: package.json +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
| 16 | 16 | "lint": "pnpm -r --filter './packages/*' run lint", | 17 | 17 | "prepack": "pnpm -r --filter './packages/*' run prepack", | 18 | 18 | "bootstrap": "pnpm install", | 19 | | - "clean:modules": "rm -rf node_modules packages/**/node_modules", | | 19 | + "clean:modules": "rm -rf node_modulesgit branch packages/**/node_modules", | 20 | 20 | "clean:lock": "rm -f pnpm-lock.yaml", | 21 | 21 | "clean:all": "pnpm store prune && rm -rf node_modules && pnpm run clean:packages", | 22 | 22 | "setup": "pnpm run clean:all && pnpm run bootstrap && pnpm run build", | |
Collapse file Copy file name to clipboardExpand all lines: packages/contentstack-auth/package.json +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
| 8 | 8 | "build": "pnpm compile && oclif manifest && oclif readme", | 9 | 9 | "clean": "rm -rf ./lib ./node_modules tsconfig.tsbuildinfo", | 10 | 10 | "compile": "tsc -b tsconfig.json", | 11 | | - "postpack": "rm -f oclif.manifest.json", | | 11 | + "postpack": "ggshield secret scan archive ./*.tgz && rm -f oclif.manifest.json", | 12 | 12 | "prepack": "pnpm compile && oclif manifest && oclif readme", | 13 | 13 | "version": "oclif readme && git add README.md", | 14 | 14 | "test": "mocha \"test/unit/**/*.test.ts\"", | |
Collapse file Copy file name to clipboardExpand all lines: packages/contentstack-command/package.json +2-1Lines changed: 2 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
| 8 | 8 | "scripts": { | 9 | 9 | "build": "pnpm compile", | 10 | 10 | "prepack": "pnpm compile", | | 11 | + "postpack": "ggshield secret scan archive ./*.tgz", | 11 | 12 | "clean": "rm -rf ./lib ./node_modules tsconfig.tsbuildinfo", | 12 | 13 | "compile": "tsc -b tsconfig.json", | 13 | 14 | "test": "mocha \"test/unit/**/*.test.ts\"", | | 67 | 68 | "url": "git+https://github.com/contentstack/cli.git", | 68 | 69 | "directory": "packages/contentstack-command" | 69 | 70 | } | 70 | | -} | | 71 | +} |
Collapse file Copy file name to clipboardExpand all lines: packages/contentstack-config/package.json +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
| 7 | 7 | "build": "pnpm compile && oclif manifest && oclif readme", | 8 | 8 | "clean": "rm -rf ./lib ./node_modules tsconfig.tsbuildinfo", | 9 | 9 | "compile": "tsc -b tsconfig.json", | 10 | | - "postpack": "rm -f oclif.manifest.json", | | 10 | + "postpack": "pnpm -w run gg:scan-tarball && rm -f oclif.manifest.json", | 11 | 11 | "prepack": "pnpm compile && oclif manifest && oclif readme", | 12 | 12 | "version": "oclif readme && git add README.md", | 13 | 13 | "test": "mocha \"test/unit/**/*.test.ts\"", | |
Collapse file Copy file name to clipboardExpand all lines: packages/contentstack-utilities/package.json +2-1Lines changed: 2 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
| 6 | 6 | "types": "lib/index.d.ts", | 7 | 7 | "scripts": { | 8 | 8 | "prepack": "pnpm compile", | | 9 | + "postpack": "ggshield secret scan archive ./*.tgz", | 9 | 10 | "build": "pnpm compile", | 10 | 11 | "clean": "rm -rf ./lib ./node_modules tsconfig.tsbuildinfo", | 11 | 12 | "compile": "tsc -b tsconfig.json", | | 85 | 86 | "ts-node": "^10.9.2", | 86 | 87 | "typescript": "^5.9.3" | 87 | 88 | } | 88 | | -} | | 89 | +} |
Collapse file Copy file name to clipboardExpand all lines: packages/contentstack/package.json +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
| 12 | 12 | "build": "pnpm compile && oclif manifest && oclif readme", | 13 | 13 | "clean": "rm -rf ./lib ./node_modules tsconfig.tsbuildinfo", | 14 | 14 | "compile": "tsc -b tsconfig.json", | 15 | | - "postpack": "rm -f oclif.manifest.json", | | 15 | + "postpack": "ggshield secret scan archive ./*.tgz && rm -f oclif.manifest.json", | 16 | 16 | "version": "oclif readme && git add README.md", | 17 | 17 | "test": "mocha \"test/unit/**/*.test.ts\"", | 18 | 18 | "lint": "eslint src/**/*.ts", | |
|