Skip to content

Commit 58bc304

Browse files
committed
feat(config): Standardize CI/CD configurations via sync workflow
1 parent a1440ef commit 58bc304

File tree

9 files changed

+322
-16
lines changed

9 files changed

+322
-16
lines changed

.deepsource.toml

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
# .deepsource.toml (Place this in your source repo)
2+
version = 1
3+
4+
# Enable all core analyzers provided by DeepSource
5+
[[analyzers]]
6+
name = "python"
7+
enabled = true
8+
9+
[[analyzers]]
10+
name = "javascript"
11+
enabled = true
12+
13+
[[analyzers]]
14+
name = "go"
15+
enabled = true
16+
17+
[[analyzers]]
18+
name = "java"
19+
enabled = true
20+
21+
[[analyzers]]
22+
name = "csharp"
23+
enabled = true
24+
25+
[[analyzers]]
26+
name = "ruby"
27+
enabled = true
28+
29+
[[analyzers]]
30+
name = "rust"
31+
enabled = true
32+
33+
[[analyzers]]
34+
name = "kotlin"
35+
enabled = true
36+
37+
[[analyzers]]
38+
name = "swift"
39+
enabled = true
40+
41+
[[analyzers]]
42+
name = "scala"
43+
enabled = true
44+
45+
[[analyzers]]
46+
name = "php"
47+
enabled = true
48+
49+
[[analyzers]]
50+
name = "ansible"
51+
enabled = true
52+
53+
[[analyzers]]
54+
name = "docker"
55+
enabled = true
56+
57+
[[analyzers]]
58+
name = "terraform"
59+
enabled = true
60+
61+
[[analyzers]]
62+
name = "secrets"
63+
enabled = true
64+
65+
[[analyzers]]
66+
name = "shell"
67+
enabled = true
68+
69+
[[analyzers]]
70+
name = "sql"
71+
enabled = true
72+
73+
# You can also enable transformers (code formatters) if desired
74+
# [[transformers]]
75+
# name = "black"
76+
# enabled = true

.github/FUNDING.yml

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
1+
# .github/FUNDING.yml
12
# These are supported funding model platforms
23

3-
github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
4-
patreon: # Replace with a single Patreon username
5-
open_collective: # Replace with a single Open Collective username
6-
ko_fi: # Replace with a single Ko-fi username
7-
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
8-
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
9-
liberapay: # Replace with a single Liberapay username
10-
issuehunt: # Replace with a single IssueHunt username
11-
otechie: # Replace with a single Otechie username
12-
custom: ['https://www.paypal.me/bryanseah234']
4+
github: bryanseah234 # Your GitHub Sponsors username
5+
# patreon: # Your Patreon username
6+
# open_collective: # Your Open Collective username
7+
# ko_fi: # Your Ko-fi username
8+
# tidelift: # npm/package-name or pypi/package-name etc
9+
# community_bridge: # Project name on Community Bridge
10+
# liberapay: # Your Liberapay username
11+
# issuehunt: # Your IssueHunt username
12+
# lfx_crowdfunding: # Your LFX Crowdfunding project name
13+
# polar: # Your Polar username
14+
# buy_me_a_coffee: # Your Buy Me a Coffee username
15+
# custom: ["https://your-custom-link.com"] # Up to 4 custom links

.github/dependabot.yml

Lines changed: 109 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,109 @@
1+
version: 2
2+
updates:
3+
# .NET SDK (global.json file)
4+
- package-ecosystem: "dotnet-sdk"
5+
directory: "/"
6+
schedule:
7+
interval: "daily"
8+
9+
# Bun (bun.lockb, package.json files)
10+
- package-ecosystem: "bun"
11+
directory: "/"
12+
schedule:
13+
interval: "daily"
14+
15+
# Bundler (Gemfile, Gemfile.lock files)
16+
- package-ecosystem: "bundler"
17+
directory: "/"
18+
schedule:
19+
interval: "daily"
20+
21+
# Cargo (Cargo.toml, Cargo.lock files)
22+
- package-ecosystem: "cargo"
23+
directory: "/"
24+
schedule:
25+
interval: "daily"
26+
27+
# Composer (composer.json, composer.lock files)
28+
- package-ecosystem: "composer"
29+
directory: "/"
30+
schedule:
31+
interval: "daily"
32+
33+
# Conda (environment.yml file)
34+
- package-ecosystem: "conda"
35+
directory: "/"
36+
schedule:
37+
interval: "daily"
38+
39+
# Dev containers (.devcontainer.json file)
40+
- package-ecosystem: "devcontainers"
41+
directory: "/"
42+
schedule:
43+
interval: "daily"
44+
45+
# Docker (Dockerfile)
46+
- package-ecosystem: "docker"
47+
directory: "/"
48+
schedule:
49+
interval: "daily"
50+
51+
# Docker Compose (docker-compose.yml file)
52+
- package-ecosystem: "docker-compose"
53+
directory: "/"
54+
schedule:
55+
interval: "daily"
56+
57+
# GitHub Actions workflows (.github/workflows/*.yml files)
58+
- package-ecosystem: "github-actions"
59+
directory: "/"
60+
schedule:
61+
interval: "daily"
62+
63+
# Go modules (go.mod file)
64+
- package-ecosystem: "gomod"
65+
directory: "/"
66+
schedule:
67+
interval: "daily"
68+
69+
# Gradle (build.gradle, build.gradle.kts files)
70+
- package-ecosystem: "gradle"
71+
directory: "/"
72+
schedule:
73+
interval: "daily"
74+
75+
# Helm (Chart.yaml, values.yaml files)
76+
- package-ecosystem: "helm"
77+
directory: "/"
78+
schedule:
79+
interval: "daily"
80+
81+
# Maven (pom.xml file)
82+
- package-ecosystem: "maven"
83+
directory: "/"
84+
schedule:
85+
interval: "daily"
86+
87+
# npm (package.json, package-lock.json files)
88+
- package-ecosystem: "npm"
89+
directory: "/"
90+
schedule:
91+
interval: "daily"
92+
93+
# NuGet (.nuspec, .csproj, etc. files)
94+
- package-ecosystem: "nuget"
95+
directory: "/"
96+
schedule:
97+
interval: "daily"
98+
99+
# pip (requirements.txt, Pipfile, setup.py files)
100+
- package-ecosystem: "pip"
101+
directory: "/"
102+
schedule:
103+
interval: "daily"
104+
105+
# Terraform (.tf files)
106+
- package-ecosystem: "terraform"
107+
directory: "/"
108+
schedule:
109+
interval: "daily"

.github/greetings.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# .github/greetings.yml
2+
# A comprehensive configuration for the actions/first-interaction action
3+
4+
repo-token: ${{ secrets.GITHUB_TOKEN }}
5+
6+
# Message for a first-time issue (fluff included!)
7+
issue-message: |
8+
# 👋 Welcome, @${{ github.actor }}!
9+
10+
Thank you so much for opening your very first issue here in the **${{ github.repository }}** repository! 🚀
11+
12+
We appreciate you taking the time to report this and help us improve our project. We're thrilled to have you as part of our community!
13+
14+
A maintainer will review this issue as soon as possible and provide feedback. In the meantime, feel free to explore our [contribution guidelines](CONTRIBUTING.md) if you're interested in helping out further.
15+
16+
Thanks again for your valuable contribution! :heart:
17+
18+
# Label to apply to first-time issues
19+
issue-label: "first-time-contributor"
20+
21+
# Message for a first-time pull request (extra fluff!)
22+
pr-message: |
23+
# 🎉 A huge welcome, @${{ github.actor }}!
24+
25+
Congratulations on opening your first ever Pull Request with **${{ github.repository }}**! We're absolutely delighted to see your contribution.
26+
27+
We truly appreciate the effort you've put into making this project better. Your support means a lot to us!
28+
29+
Our team will start the review process shortly. Please be patient as we work through our review queue.
30+
31+
If you have any questions during the review process, don't hesitate to ask right here in the comments.
32+
33+
Thanks again, and happy coding! :sparkles:
34+
35+
# Label to apply to first-time pull requests
36+
pr-label: "first-time-contributor"

.github/labels.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# .github/labels.yml
2+
# Example configuration for the labeler action
3+
4+
documentation:
5+
- 'docs/**/*'
6+
- '*.md'
7+
8+
backend:
9+
- 'src/server/**/*'
10+
- 'backend/**/*'
11+
12+
frontend:
13+
- 'src/client/**/*'
14+
- 'frontend/**/*'
15+
- 'ui/**/*'
16+
17+
tests:
18+
- '**/__tests__/**/*'
19+
- 'tests/**/*'
20+
- 'spec/**/*'
21+
22+
bug:
23+
- 'fix/*'
24+
- 'bug/*'
25+
26+
enhancement:
27+
- 'feat/*'
28+
- 'feature/*'

.github/workflows/greetings.yml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,17 @@
1-
name: Greetings
1+
# .github/workflows/greetings.yml
2+
name: Greet New Contributors
23

3-
on: [pull_request, issues]
4+
on:
5+
issues:
6+
types: [opened]
7+
pull_request:
8+
types: [opened]
49

510
jobs:
6-
greeting:
11+
greet:
712
runs-on: ubuntu-latest
813
steps:
9-
- uses: actions/first-interaction@v1
14+
- uses: actions/first-interaction@v1.1.0
1015
with:
1116
repo-token: ${{ secrets.GITHUB_TOKEN }}
12-
issue-message: 'Message that will be displayed on users'' first issue'
13-
pr-message: 'Message that will be displayed on users'' first pr'
17+
# The action automatically looks for .github/greetings.yml

.github/workflows/labeler.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# .github/workflows/labeler.yml
2+
name: "Pull Request Labeler"
3+
on:
4+
pull_request_target: # This trigger is generally safer for labeler actions
5+
types:
6+
- opened
7+
- reopened
8+
- synchronize
9+
10+
jobs:
11+
label:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/labeler@v2
15+
with:
16+
repo-token: ${{ secrets.GITHUB_TOKEN }}
17+
# The action automatically looks for .github/labels.yml by default

.github/workflows/trufflehog.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# .github/workflows/trufflehog.yml
2+
name: TruffleHog Secret Scan
3+
4+
on:
5+
push:
6+
branches: [ "main" ]
7+
pull_request:
8+
branches: [ "main" ]
9+
10+
jobs:
11+
trufflehog:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Checkout code
15+
uses: actions/checkout@v4
16+
with:
17+
fetch-depth: 0
18+
19+
- name: TruffleHog OSS
20+
uses: trufflesecurity/trufflehog@main
21+
with:
22+
path: ./
23+
base: ${{ github.event.repository.default_branch }}
24+
head: HEAD
25+
extra_args: --only-verified
26+
27+
- name: Check for secrets
28+
if: failure()
29+
run: echo "TruffleHog detected secrets. Please review and remove them." && exit 1

.sourcery.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# .github/.sourcery.yaml
2+
# Sourcery configuration file
3+
# All basic analyzers are enabled by default for public repositories.
4+
# This file serves to acknowledge Sourcery configuration location.

0 commit comments

Comments
 (0)