Skip to content

Commit a05c5f5

Browse files
authored
chore: add/update default repository files (#31)
- Add standardized GitHub workflows - Update linting and security configurations - Add documentation templates - Update development tools configuration Generated by multi-gitter
1 parent 6c4001c commit a05c5f5

File tree

6 files changed

+16
-36
lines changed

6 files changed

+16
-36
lines changed

.github/workflows/codeql-actions.yml renamed to .github/workflows/codeql.yml

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# GitHub Actions workflow for CodeQL security analysis
33
# Performs static analysis to identify security vulnerabilities in GitHub Actions
44
# https://docs.github.com/en/code-security/code-scanning/introduction-to-code-scanning/about-code-scanning-with-codeql
5-
name: CodeQL GitHub Actions
5+
name: codeql
66

77
on:
88
workflow_dispatch:
@@ -14,27 +14,25 @@ on:
1414
schedule:
1515
- cron: 17 10 * * 2
1616

17-
permissions: read-all
17+
permissions:
18+
security-events: write
19+
packages: read
1820

1921
jobs:
20-
analyze-actions:
21-
name: Analyze GitHub Actions
22+
codeql:
2223
runs-on: ubuntu-latest
23-
permissions:
24-
security-events: write
25-
packages: read
2624
steps:
2725
- name: Checkout repository
2826
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
2927

3028
- name: Initialize CodeQL
31-
uses: github/codeql-action/init@3599b3baa15b485a2e49ef411a7a4bb2452e7f93 # v3.30.5
29+
uses: github/codeql-action/init@64d10c13136e1c5bce3e5fbde8d4906eeaafc885 # v3.30.6
3230
with:
3331
languages: actions
3432
build-mode: none
3533
queries: security-extended
3634

3735
- name: Perform CodeQL Analysis
38-
uses: github/codeql-action/analyze@3599b3baa15b485a2e49ef411a7a4bb2452e7f93 # v3.30.5
36+
uses: github/codeql-action/analyze@64d10c13136e1c5bce3e5fbde8d4906eeaafc885 # v3.30.6
3937
with:
4038
category: "/language:actions"

.github/workflows/mega-linter.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,7 @@ jobs:
3535
chmod a+x README.sh
3636
3737
- name: 💡 MegaLinter
38-
uses: oxsecurity/megalinter@e08c2b05e3dbc40af4c23f41172ef1e068a7d651 # v8.8.0
38+
uses: oxsecurity/megalinter@0dcbedd66ea456ba2d54fd350affaa15df8a0da3 # v9.0.1
3939
env:
4040
GITHUB_COMMENT_REPORTER: false
41-
# Disabled due to error: [GitHub Status Reporter] Error posting Status for REPOSITORY with ...: 403
42-
GITHUB_STATUS_REPORTER: false
4341
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/release-please.yml

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -10,24 +10,16 @@ on:
1010
branches:
1111
- main
1212

13-
permissions: read-all
13+
permissions:
14+
contents: write
15+
issues: write
16+
pull-requests: write
1417

1518
jobs:
1619
release-please:
1720
runs-on: ubuntu-latest
18-
permissions:
19-
contents: write
20-
pull-requests: write
2121
steps:
22-
- name: Generate GitHub App token
23-
uses: actions/create-github-app-token@67018539274d69449ef7c02e8e71183d1719ab42 # v2.1.4
24-
id: app-token
25-
with:
26-
app-id: ${{ secrets.MY_RENOVATE_GITHUB_APP_ID }}
27-
private-key: ${{ secrets.MY_RENOVATE_GITHUB_PRIVATE_KEY }}
28-
2922
- name: Create release with Release Please
3023
uses: googleapis/release-please-action@c2a5a2bd6a758a0937f1ddb1e8950609867ed15c # v4.3.0
3124
with:
3225
release-type: simple
33-
token: ${{ steps.app-token.outputs.token }}

.github/workflows/renovate.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,6 @@ jobs:
6262
private-key: ${{ secrets.MY_RENOVATE_GITHUB_PRIVATE_KEY }}
6363

6464
- name: 💡 Self-hosted Renovate
65-
uses: renovatebot/github-action@13f127373fd3dc43b41b0979e37ba570d6c2b8f4 # v43.0.0
65+
uses: renovatebot/github-action@2d941ef4e268e53affdc1f11365c69a73e544f50 # v43.0.14
6666
with:
6767
token: ${{ steps.app-token.outputs.token }}

.github/workflows/scorecards.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ on:
1414
permissions: read-all
1515

1616
jobs:
17-
security-scorecard:
17+
scorecards:
1818
runs-on: ubuntu-latest
1919
permissions:
2020
# Required for uploading SARIF results to GitHub Security tab
@@ -30,15 +30,15 @@ jobs:
3030
persist-credentials: false
3131

3232
- name: Run OSSF Scorecard Analysis
33-
uses: ossf/scorecard-action@05b42c624433fc40578a4040d5cf5e36ddca8cde # v2.4.2
33+
uses: ossf/scorecard-action@4eaacf0543bb3f2c246792bd56e8cdeffafb205a # v2.4.3
3434
with:
3535
results_file: results.sarif
3636
results_format: sarif
3737
# Publish results to OpenSSF Scorecard API (optional)
3838
publish_results: true
3939

4040
- name: Upload SARIF results to GitHub Security
41-
uses: github/codeql-action/upload-sarif@3599b3baa15b485a2e49ef411a7a4bb2452e7f93 # v3.30.5
41+
uses: github/codeql-action/upload-sarif@64d10c13136e1c5bce3e5fbde8d4906eeaafc885 # v3.30.6
4242
with:
4343
sarif_file: results.sarif
4444
# Set category to distinguish from other security scans

lychee.toml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,6 @@
66
# Enable link caching to avoid checking the same links on multiple runs
77
cache = true
88

9-
# Discard cached requests older than this duration
10-
max_cache_age = "1d"
11-
12-
############################# Runtime #############################
13-
14-
# Maximum number of concurrent link checks
15-
max_concurrency = 128
16-
179
############################# Requests ############################
1810

1911
# Accept these status codes as valid (200 = OK, 429 = rate limited)

0 commit comments

Comments
 (0)