Linting refactor to make yamllint happy
parent
10145eae51
commit
1758728197
|
@ -1,17 +1,19 @@
|
||||||
name: syntax-checking
|
name: syntax-checking
|
||||||
|
|
||||||
on:
|
"on":
|
||||||
push:
|
push:
|
||||||
branches: [ master ]
|
branches:
|
||||||
|
- master
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [ master ]
|
branches:
|
||||||
|
- master
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- name: 'Yamllint'
|
- name: Yamllint
|
||||||
uses: karancode/yamllint-github-action@master
|
uses: karancode/yamllint-github-action@master
|
||||||
with:
|
with:
|
||||||
yamllint_config_filepath: .yamllint
|
yamllint_config_filepath: .yamllint
|
||||||
|
|
|
@ -1,7 +1,5 @@
|
||||||
id: general-tokens
|
id: general-tokens
|
||||||
|
|
||||||
#this will create a huge load of false positive
|
|
||||||
|
|
||||||
info:
|
info:
|
||||||
name: General Tokens
|
name: General Tokens
|
||||||
author: nadino
|
author: nadino
|
||||||
|
@ -10,23 +8,23 @@ info:
|
||||||
requests:
|
requests:
|
||||||
- method: GET
|
- method: GET
|
||||||
path:
|
path:
|
||||||
- "{{BaseURL}}"
|
- '{{BaseURL}}'
|
||||||
matchers:
|
matchers:
|
||||||
- type: dsl
|
- type: dsl
|
||||||
dsl:
|
dsl:
|
||||||
- 'regex("TOKEN[\\-|_|A-Z0-9]*(\''|\")?(:|=)(\''|\")?[\\-|_|A-Z0-9]{10}",replace(toupper(body)," ",""))' #any TOKEN word
|
- regex("TOKEN[\\-|_|A-Z0-9]*(\'|\")?(:|=)(\'|\")?[\\-|_|A-Z0-9]{10}",replace(toupper(body),"",""))
|
||||||
- 'regex("API[\\-|_|A-Z0-9]*(\''|\")?(:|=)(\''|\")?[\\-|_|A-Z0-9]{10}",replace(toupper(body)," ",""))' #any API word
|
- regex("API[\\-|_|A-Z0-9]*(\'|\")?(:|=)(\'|\")?[\\-|_|A-Z0-9]{10}",replace(toupper(body),"",""))
|
||||||
- 'regex("KEY[\\-|_|A-Z0-9]*(\''|\")?(:|=)(\''|\")?[\\-|_|A-Z0-9]{10}",replace(toupper(body)," ",""))' #any KEY word
|
- regex("KEY[\\-|_|A-Z0-9]*(\'|\")?(:|=)(\'|\")?[\\-|_|A-Z0-9]{10}",replace(toupper(body),"",""))
|
||||||
- 'regex("SECRET[\\-|_|A-Z0-9]*(\''|\")?(:|=)(\''|\")?[\\-|_|A-Z0-9]{10}",replace(toupper(body)," ",""))' #any SECRET word
|
- regex("SECRET[\\-|_|A-Z0-9]*(\'|\")?(:|=)(\'|\")?[\\-|_|A-Z0-9]{10}",replace(toupper(body),"",""))
|
||||||
- 'regex("AUTHORIZATION[\\-|_|A-Z0-9]*(\''|\")?(:|=)(\''|\")?[\\-|_|A-Z0-9]{10}",replace(toupper(body)," ",""))' #any AUTHORIZATION word
|
- regex("AUTHORIZATION[\\-|_|A-Z0-9]*(\'|\")?(:|=)(\'|\")?[\\-|_|A-Z0-9]{10}",replace(toupper(body),"",""))
|
||||||
- 'regex("PASSWORD[\\-|_|A-Z0-9]*(\''|\")?(:|=)(\''|\")?[\\-|_|A-Z0-9]{10}",replace(toupper(body)," ",""))' #any PASSWORD word
|
- regex("PASSWORD[\\-|_|A-Z0-9]*(\'|\")?(:|=)(\'|\")?[\\-|_|A-Z0-9]{10}",replace(toupper(body),"",""))
|
||||||
extractors:
|
extractors:
|
||||||
- type: regex
|
- type: regex
|
||||||
part: body
|
part: body
|
||||||
regex:
|
regex:
|
||||||
- "(T|t)(O|o)(K|k)(E|e)(N|n)[\\-|_|A-Za-z0-9]*(\''|\")?( )*(:|=)+( )*(\''|\")?[ 0-9A-Za-z\\-_]+(\''|\")?"
|
- (T|t)(O|o)(K|k)(E|e)(N|n)[\-|_|A-Za-z0-9]*(\''|")?( )*(:|=)+()*(\''|")?[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0-9]*(\''|")?()*(:|=)( )*(\''|")?[ 0-9A-Za-z\-_]+(\''|")?
|
||||||
|
|
|
@ -10,7 +10,7 @@ requests:
|
||||||
path:
|
path:
|
||||||
- "{{BaseURL}}"
|
- "{{BaseURL}}"
|
||||||
headers:
|
headers:
|
||||||
Origin: https://evil.com
|
Origin: "https://evil.com"
|
||||||
matchers:
|
matchers:
|
||||||
- type: word
|
- type: word
|
||||||
words:
|
words:
|
||||||
|
|
|
@ -163,7 +163,7 @@ requests:
|
||||||
- type: word
|
- type: word
|
||||||
name: helpscout
|
name: helpscout
|
||||||
words:
|
words:
|
||||||
- 'No settings were found for this company:'
|
- "No settings were found for this company:"
|
||||||
|
|
||||||
- type: word
|
- type: word
|
||||||
name: cargo
|
name: cargo
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
id: slack-access-token
|
id: slack-access-token
|
||||||
|
|
||||||
#xoxp-702234529XXX-688970480XXX-109182524XXXX-87fa5b4d2e62ac5c16fc6ea93bXXXXXX
|
# xoxp-702234529XXX-688970480XXX-109182524XXXX-87fa5b4d2e62ac5c16fc6ea93bXXXXXX
|
||||||
#xoxb-702234529XXX-1076883857XXX-Ou9aRuvtFZ4DuTsepevXXXXX
|
# xoxb-702234529XXX-1076883857XXX-Ou9aRuvtFZ4DuTsepevXXXXX
|
||||||
|
|
||||||
info:
|
info:
|
||||||
name: Slack access token
|
name: Slack access token
|
||||||
|
|
|
@ -4,7 +4,7 @@ info:
|
||||||
name: Invalidate / Flush Cached Pages From AEM
|
name: Invalidate / Flush Cached Pages From AEM
|
||||||
author: hetroublemakr
|
author: hetroublemakr
|
||||||
severity: low
|
severity: low
|
||||||
#reference: @AEMSecurity
|
# reference: @AEMSecurity
|
||||||
|
|
||||||
requests:
|
requests:
|
||||||
- method: GET
|
- method: GET
|
||||||
|
|
Loading…
Reference in New Issue