-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
52 additions
and
10 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,14 @@ | ||
name: Spectral | ||
on: [push] | ||
env: | ||
SPECTRAL_DSN: ${{ secrets.SPECTRAL_DSN }} | ||
jobs: | ||
build: | ||
name: Spectral | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Install | ||
run: curl -L "https://get.spectralops.io/latest/sh?dsn=$SPECTRAL_DSN" | sudo sh | ||
- name: Scan | ||
run: spectral scan |
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 @@ | ||
# ignores known and problematic files, per rule. | ||
# "problematic" files can be test files, mock data files and so on. | ||
AWS0001: | ||
- .*create-react-context/.* |
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 @@ | ||
RL001: | ||
name: Merchant IDs | ||
or: | ||
- pattern: MERK_.* | ||
- pattern: MAR_FINDER.* |
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,17 @@ | ||
rules: | ||
- id: AWS0001 | ||
name: No AWS secrets in python files. | ||
finding: ".*/(.*).py" # python file name | ||
subject: "(.*)[^/]*" # root folder | ||
description: We should not have any AWS secrets in python files. | ||
tags: | ||
- python | ||
applies_to: | ||
- ".*\\.py$" | ||
severity: info | ||
pattern_group: | ||
aggregate: or | ||
scope: text | ||
patterns: | ||
- pattern: ".*A[KS]IA.*" | ||
pattern_type: regex # This can also be 'dict', 'entropy'. For 'dict' see words.yaml |
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,17 +1,21 @@ | ||
reporter: | ||
outputs: | ||
stylish: {} # nice looking CLI reports | ||
log: # use a logger | ||
json: true # enable JSON logging | ||
file: out.json # put output in a file | ||
log: # use a logger | ||
json: true # enable JSON logging | ||
file: out.json # put output in a file | ||
|
||
match_ignores: | ||
ignores: | ||
- path: ".*/.spectral/" | ||
|
||
projects: | ||
sample: | ||
project: | ||
name: sample | ||
input: | ||
- local: src | ||
- local: . | ||
name: sources | ||
rules: | ||
roots: | ||
- rules | ||
- rules |
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