-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: added CI and basic repo structure
- Loading branch information
1 parent
096e127
commit 2b4d363
Showing
8 changed files
with
100 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: github-actions | ||
directory: "/" | ||
schedule: | ||
interval: monthly |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
## Describe the Change | ||
|
||
<!-- Add a description of what the pull request is changing, adding, and any other relevant context. --> | ||
|
||
This PR .... | ||
|
||
## Jira Tickets | ||
|
||
<!-- Add a link to the JIRA tickets (if applicable) --> | ||
|
||
🎫 [Jira Ticket]() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
name: GitLeaks | ||
on: [pull_request] | ||
|
||
concurrency: | ||
group: gitleaks-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
gitleaks-scan: | ||
runs-on: ubuntu-latest | ||
container: | ||
image: gcr.io/spectro-dev-public/bulwark/gitleaks:latest | ||
env: | ||
REPO: ${{ github.event.repository.name }} | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
GITLEAKS_CONFIG: config.toml | ||
steps: | ||
- name: run-bulwark-gitleaks-scan | ||
shell: sh | ||
env: | ||
BRANCH: ${{ github.head_ref || github.ref_name }} | ||
run: /workspace/bulwark -name CodeSASTGitLeaks -target $REPO -tags "branch:$BRANCH,options:--log-opts origin..HEAD" | ||
|
||
- name: check-result | ||
shell: sh | ||
run: | | ||
resultPath=./$REPO/gitleaks.json | ||
cat $resultPath | grep -v \"Match\"\: | grep -v \"Secret\"\: | ||
total_failed_tests=`cat $resultPath | grep \"Fingerprint\"\: | wc -l` | ||
if [ "$total_failed_tests" -gt 0 ]; then | ||
echo "GitLeaks validation check failed with above findings..." | ||
exit 1 | ||
else | ||
echo "GitLeaks validation check passed" | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
.cache/ | ||
.DS_Store | ||
.vale/styles/*.zip | ||
node_modules/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
|
||
|
||
|
||
help: ## Display this help | ||
@awk 'BEGIN {FS = ":.*##"; printf "\nUsage:\n make \033[36m<target>\033[0m\n"} /^[a-zA-Z_-]+:.*?##/ { printf " \033[36m%-15s\033[0m %s\n", $$1, $$2 } /^##@/ { printf "\n\033[0m%s\033[0m\n", substr($$0, 5) } ' $(MAKEFILE_LIST) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,15 @@ | ||
# spectro-vale-pkg | ||
A custom Vale package containing rules and standards that adhere to the Spectro Cloud Style Guide | ||
<!-- vale off --> | ||
|
||
# Spectro Cloud Vale Package | ||
|
||
![Spectro Cloud logo with docs inline](/static/img/spectrocloud-logo-light.svg) | ||
|
||
This repository contains the Vale package for Spectro Cloud documentation. The package includes custom rules and configurations to ensure consistency and quality across the documentation. The package is based of the [Spectro Cloud style guide](https://spectrocloud.atlassian.net/wiki/spaces/DE/pages/1765933057/Spectro+Cloud+Internal+Style+Guide) and best practices. | ||
|
||
## Usage | ||
|
||
TBD | ||
|
||
## Contribution | ||
|
||
Please refer to the [Contribution Guide](docs/CONTRIBUTION.md) for more information on how to contribute to this repository. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# Contribution | ||
|
||
TBD |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.