File tree Expand file tree Collapse file tree 3 files changed +99
-0
lines changed Expand file tree Collapse file tree 3 files changed +99
-0
lines changed Original file line number Diff line number Diff line change 1+ ---
2+
3+ name : gitleaks
4+
5+ on : # yamllint disable-line rule:truthy
6+ pull_request :
7+ push :
8+ workflow_dispatch :
9+ schedule :
10+ # ┌───────────── minute (0 - 59)
11+ # │ ┌───────────── hour (0 - 23)
12+ # │ │ ┌───────────── day of the month (1 - 31)
13+ # │ │ │ ┌───────────── month (1 - 12 or JAN-DEC)
14+ # │ │ │ │ ┌───────────── day of the week (0 - 6 or SUN-SAT)
15+ # │ │ │ │ │
16+ # │ │ │ │ │
17+ # │ │ │ │ │
18+ # * * * * *
19+ - cron : " 0 6 * * *" # run once a day at 6 AM
20+ jobs :
21+ scan :
22+ name : gitleaks
23+ runs-on : ubuntu-24.04
24+ steps :
25+ - uses : actions/checkout@v5
26+ with :
27+ fetch-depth : 0
28+ - uses : gitleaks/gitleaks-action@v2
29+ env :
30+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
31+ # Only required for Organizations, not personal accounts.
32+ # GITLEAKS_LICENSE: ${{ secrets.GITLEAKS_LICENSE}}
Original file line number Diff line number Diff line change 1+ ---
2+ name : Markdown Lint
3+
4+ on : # yamllint disable-line rule:truthy
5+ push :
6+ branches : ["main"]
7+ pull_request :
8+ # The branches below must be a subset of the branches above
9+ branches : ["main"]
10+ workflow_dispatch :
11+
12+ permissions : read-all
13+
14+ jobs :
15+ markdownlint :
16+ name : Markdown Lint
17+ runs-on : ubuntu-24.04
18+
19+ strategy :
20+ matrix :
21+ node-version : [22.x]
22+ # See supported Node.js release schedule
23+ # at https://nodejs.org/en/about/releases/
24+
25+ steps :
26+ - name : Checkout repository
27+ uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5
28+
29+ - name : Set up Node.js ${{ matrix.node-version }}
30+ uses : actions/setup-node@v5
31+ with :
32+ node-version : ${{ matrix.node-version }}
33+
34+ - name : Install dependencies
35+ run : npm install -g markdownlint-cli
36+
37+ - name : Lint
38+ run : >
39+ markdownlint '**/*.md' --ignore node_modules
40+ && echo '✔ Your code looks good.'
Original file line number Diff line number Diff line change 1+ ---
2+
3+ name : YAML lint
4+
5+ on : # yamllint disable-line rule:truthy
6+ push :
7+ branches : ["main"]
8+ pull_request :
9+ # The branches below must be a subset of the branches above
10+ branches : ["main"]
11+ workflow_dispatch :
12+
13+ jobs :
14+ lint :
15+ name : YAML lint
16+ runs-on : ubuntu-24.04
17+ steps :
18+ - name : Checkout repository
19+ uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5
20+
21+ - name : Install yamllint
22+ run : pip install yamllint
23+
24+ - name : Lint YAML files
25+ run : >
26+ yamllint --strict .
27+ && echo '✔ Your code looks good.'
You can’t perform that action at this time.
0 commit comments