Skip to content

Commit 6570300

Browse files
dev: update standard practicalli configuration files
1 parent 656d0f3 commit 6570300

File tree

6 files changed

+44
-7
lines changed

6 files changed

+44
-7
lines changed

.gitattributes

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Configure Languages for GitHub repository using Linguist
2+
3+
# Markdown & Make detection,
4+
# exclude HTML, CSS & JavaScript
5+
# docs/** linguist-detectable
6+
*.edn linguist-detectable=true
7+
*.md linguist-detectable=true
8+
make linguist-detectable=true
9+
*.css linguist-detectable=false
10+
*.js linguist-detectable=false
11+
*.html linguist-detectable=false

.github/CODEOWNERS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
# Default owner accounts for the current repository
44
# Automatically added as a reviewr to all pull requests (not including drafts)
55

6-
* @practicalli-john
6+
* @practicalli-johnny

.github/config/gitleaks.toml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
title = "gitleaks config"
2+
3+
[allowlist]
4+
description = "global allow lists"
5+
paths = [
6+
'''gitleaks.toml''',
7+
'''(.*?)(jpg|gif|doc|docx|zip|xls|pdf|bin|svg|socket)$''',
8+
'''(go.mod|go.sum)$''',
9+
'''gradle.lockfile''',
10+
'''node_modules''',
11+
'''package-lock.json''',
12+
'''pnpm-lock.yaml''',
13+
'''Database.refactorlog''',
14+
'''vendor''',
15+
]
16+
17+
[[rules]]
18+
description = "AWS Example API Key"
19+
id = "aws-example-api-key"
20+
regex = '''AKIAIOSFODNN7EXAMPLE'''
21+
keywords = [
22+
"awstoken",
23+
]

.github/config/megalinter.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ MARKDOWN_MARKDOWN_LINK_CHECK_CONFIG_FILE: ".github/config/markdown-link-check.js
4646
MARKDOWN_REMARK_LINT_DISABLE_ERRORS: true
4747
# MARKDOWN_MARKDOWN_TABLE_FORMATTER_DISABLE_ERRORS: false
4848

49+
REPOSITORY_GITLEAKS_CONFIG_FILE: ".github/config/gitleaks.toml"
4950
REPOSITORY_TRUFFLEHOG_DISABLE_ERRORS: true # Errors only as warnings
5051

5152
# SPELL_CSPELL_DISABLE_ERRORS: true

.github/workflows/version-check.yaml renamed to .github/workflows/scheduled-version-check.yaml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,7 @@ on:
2020
# - cron: "0 4 * * *" # at 04:04:04 ever day
2121
# - cron: "0 4 * * 5" # at 04:04:04 ever Friday
2222
- cron: "0 4 1 * *" # at 04:04:04 on first day of month
23-
workflow_dispatch:
24-
# Run manually via GitHub Actions Workflow page
23+
workflow_dispatch: # Run manually via GitHub Actions Workflow page
2524

2625
jobs:
2726
scheduled-version-check:
@@ -32,10 +31,13 @@ jobs:
3231
- run: echo "🐧 Job running on ${{ runner.os }} server"
3332
- run: echo "🐙 Using ${{ github.ref }} branch from ${{ github.repository }} repository"
3433

35-
- name: "Checkout code"
34+
- name: Checkout Code
3635
uses: actions/checkout@v4
37-
- run: echo "🐙 ${{ github.repository }} repository was cloned to the runner."
38-
36+
with:
37+
fetch-depth: 0
38+
sparse-checkout: |
39+
.github
40+
- run: echo "🐙 ${{ github.repository }} repository sparse-checkout to the CI runner."
3941
- name: "Antq Check versions"
4042
uses: liquidz/antq-action@main
4143
with:

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ lint-clean: ## Clean MegaLinter report information
134134
$(info --------- MegaLinter Clean Reports ---------)
135135
- rm -rf ./megalinter-reports
136136

137-
megalinter-upgrade: ## Update MegaLinter config to latest version
137+
megalinter-upgrade: ## Upgrade MegaLinter config to latest version
138138
$(info --------- MegaLinter Upgrade Config ---------)
139139
npx mega-linter-runner@latest --upgrade
140140
# ------------------------------------ #

0 commit comments

Comments
 (0)