Skip to content

Commit

Permalink
fix: set config files
Browse files Browse the repository at this point in the history
  • Loading branch information
lpmatos committed Feb 19, 2022
1 parent 6471dab commit 47df44e
Show file tree
Hide file tree
Showing 9 changed files with 168 additions and 70 deletions.
14 changes: 0 additions & 14 deletions .github/config.yml

This file was deleted.

File renamed without changes.
22 changes: 7 additions & 15 deletions .gitleaks.toml → .github/config/.gitleaks.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,20 +11,6 @@ title = "gitleaks config"
#
# We can write a regular expression to capture the variable name (identifier),
# the assignment symbol (like '=' or ':='), and finally the actual secret.
# The structure of a rule to match this example secret is below:
#
# Beginning string
# quotation
# │ End string quotation
# │ │
# ▼ ▼
# (?i)(discord[a-z0-9_ .\-,]{0,25})(=|>|:=|\|\|:|<=|=>|:).{0,5}['\"]([a-z0-9=_\-]{32})['\"]
#
# ▲ ▲ ▲
# │ │ │
# │ │ │
# identifier assignment symbol
# Secret
#
[[rules]]
id = "gitlab-pat"
Expand Down Expand Up @@ -77,7 +63,6 @@ id = "SSH-EC-PK"
description = "SSH (EC) private key"
regex = '''-----BEGIN EC PRIVATE KEY-----'''


[[rules]]
id = "github-app-token"
description = "Github App Token"
Expand Down Expand Up @@ -524,6 +509,13 @@ description = "Typeform API token"
regex = '''(?i)(typeform[a-z0-9_ .\-,]{0,25})(=|>|:=|\|\|:|<=|=>|:).{0,5}(tfp_[a-z0-9\-_\.=]{59})'''
secretGroup = 3

[[rules]]
id = "generic-api-key"
description = "Generic API Key"
regex = '''(?i)((key|api|token|secret|password)[a-z0-9_ .\-,]{0,25})(=|>|:=|\|\|:|<=|=>|:).{0,5}['\"]([0-9a-zA-Z\-_=]{8,64})['\"]'''
entropy = 3.7
secretGroup = 4

[allowlist]
description = "global allow lists"
regexes = ['''219-09-9999''', '''078-05-1120''', '''(9[0-9]{2}|666)-\d{2}-\d{4}''']
Expand Down
6 changes: 6 additions & 0 deletions .github/config/.gitpod.Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
FROM gitpod/workspace-full:build-branch-master

# Install custom tools, runtime, etc.
RUN brew install fzf \
gitleaks \
pre-commit
File renamed without changes.
144 changes: 144 additions & 0 deletions .github/config/.releaserc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,144 @@
{
"branches": ["main"],
"tagFormat": "${version}",
"plugins": [
[
"@semantic-release/commit-analyzer",
{
"preset": "conventionalcommits",
"releaseRules": [
{
"type": "build",
"release": "patch"
},
{
"type": "ci",
"release": "patch"
},
{
"type": "docs",
"release": "patch"
},
{
"type": "feat",
"release": "minor"
},
{
"type": "fix",
"release": "patch"
},
{
"type": "perf",
"release": "patch"
},
{
"type": "refactor",
"release": "minor"
},
{
"type": "style",
"release": "patch"
},
{
"type": "test",
"release": "patch"
},
{
"revert": true,
"release": "patch"
},
{
"breaking": true,
"release": "major"
}
],
"parserOpts": {
"noteKeywords": ["BREAKING CHANGE", "BREAKING CHANGES", "BREAKING"]
}
}
],
[
"@semantic-release/release-notes-generator",
{
"preset": "conventionalcommits",
"parserOpts": {
"noteKeywords": ["BREAKING CHANGE", "BREAKING CHANGES", "BREAKING"]
},
"presetConfig": {
"types": [
{
"type": "build",
"section": ":nut_and_bolt: Build",
"hidden": false
},
{
"type": "ci",
"section": ":repeat: CI",
"hidden": false
},
{
"type": "docs",
"section": ":memo: Docs",
"hidden": false
},
{
"type": "feat",
"section": ":sparkles: News",
"hidden": false
},
{
"type": "fix",
"section": ":bug: Fixes",
"hidden": false
},
{
"type": "perf",
"section": ":fast_forward: Performance",
"hidden": false
},
{
"type": "refactor",
"section": ":zap: Refactoring",
"hidden": false
},
{
"type": "revert",
"section": ":flashlight: Reverter",
"hidden": false
},
{
"type": "style",
"section": ":barber: Stylization",
"hidden": false
},
{
"type": "test",
"section": ":white_check_mark: Testes",
"hidden": false
}
]
}
}
],
[
"@semantic-release/github",
{
"addReleases": "top"
}
],
[
"@semantic-release/changelog",
{
"changelogFile": "CHANGELOG.md",
"changelogTitle": "# Semantic Versioning Changelog"
}
],
[
"@semantic-release/git",
{
"assets": ["CHANGELOG.md", "README.md"],
"message": "chore(release): version <%= nextRelease.version %> - <%= new Date().toLocaleDateString('en-US', {year: 'numeric', month: 'short', day: 'numeric', hour: 'numeric', minute: 'numeric' }) %>"
}
]
]
}
17 changes: 0 additions & 17 deletions .github/dependabot.yml

This file was deleted.

11 changes: 11 additions & 0 deletions .github/renovate.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"extends": [
"config:base", ":disableDependencyDashboard"
],
"packageRules": [
{
"matchDepTypes": ["devDependencies"],
"automerge": true
}
]
}
24 changes: 0 additions & 24 deletions .github/stale.yml

This file was deleted.

0 comments on commit 47df44e

Please sign in to comment.