Skip to content
This repository was archived by the owner on May 6, 2025. It is now read-only.

Commit 3b0c363

Browse files
authored
feat: add github defaults (#538)
1 parent 7f3e315 commit 3b0c363

File tree

8 files changed

+30
-11
lines changed

8 files changed

+30
-11
lines changed

.github/renovate.json5

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
11
{
22
$schema: "https://docs.renovatebot.com/renovate-schema.json",
3+
// Keep the extends started with ":" at the end of the list to allow overriding
34
extends: [
45
"config:recommended",
56
"docker:pinDigests",
67
"helpers:pinGitHubActionDigestsToSemver",
78
"security:openssf-scorecard",
89
":disableDependencyDashboard",
9-
":docker",
1010
":disableRateLimiting",
11+
":docker",
1112
":enableVulnerabilityAlertsWithLabel(security)",
13+
":pinSkipCi",
1214
],
1315
"git-submodules": {
1416
enabled: true,

.github/workflows/mega-linter.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,12 @@ jobs:
3434
# Extract: ```bash ... ```
3535
sed -n "/^ \`\`\`\(bash\|shell\)$/,/^ \`\`\`$/p" "${FILE}" | sed '/^ ```*/d; s/^ //' >> README.sh
3636
done
37-
ls -la README.sh
3837
chmod a+x README.sh
3938
4039
- name: 💡 MegaLinter
41-
uses: oxsecurity/megalinter@5199c6377b4cb7faff749a1971636f3343db9fe6 # v7.12.0
40+
uses: oxsecurity/megalinter@bacb5f8674e3730b904ca4d20c8bd477bc51b1a7 # v7.13.0
4241
env:
4342
GITHUB_COMMENT_REPORTER: false
44-
GITHUB_STATUS_REPORTER: true
43+
# Disabled due to error: [GitHub Status Reporter] Error posting Status for REPOSITORY with ...: 403
44+
GITHUB_STATUS_REPORTER: false
4545
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/release-please.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,13 @@ jobs:
1515
release-please:
1616
runs-on: ubuntu-latest
1717
steps:
18+
- uses: actions/create-github-app-token@31c86eb3b33c9b601a1f60f98dcbfd1d70f379b4 # v1.10.3
19+
id: app-token
20+
with:
21+
app-id: ${{ secrets.MY_RENOVATE_GITHUB_APP_ID }}
22+
private-key: ${{ secrets.MY_RENOVATE_GITHUB_PRIVATE_KEY }}
23+
1824
- uses: google-github-actions/release-please-action@e4dc86ba9405554aeba3c6bb2d169500e7d3b4ee # v4.1.1
1925
with:
2026
release-type: simple
27+
token: ${{ steps.app-token.outputs.token }}

.github/workflows/renovate.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ on:
2020
- main
2121
- "!renovate/*"
2222
schedule:
23-
- cron: "0 0,2,4 * * 0"
23+
- cron: "0 0-3 * * 0"
2424

2525
env:
2626
# https://docs.renovatebot.com/troubleshooting/#log-debug-levels
@@ -45,6 +45,7 @@ jobs:
4545
runs-on: ubuntu-latest
4646
concurrency:
4747
group: ${{ github.workflow }}-${{ github.ref }}
48+
permissions: write-all
4849
steps:
4950
- name: Checkout
5051
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
@@ -53,9 +54,9 @@ jobs:
5354
id: app-token
5455
with:
5556
app-id: ${{ secrets.MY_RENOVATE_GITHUB_APP_ID }}
56-
private-key: "${{ secrets.MY_RENOVATE_GITHUB_PRIVATE_KEY }}"
57+
private-key: ${{ secrets.MY_RENOVATE_GITHUB_PRIVATE_KEY }}
5758

5859
- name: 💡 Self-hosted Renovate
59-
uses: renovatebot/github-action@78bdcb3bffa5e95e646183ca0a2ac2895abd6a20 # v40.1.3
60+
uses: renovatebot/github-action@259200be4d976a76196ec8985b0dddcaf1733b47 # v40.2.0
6061
with:
61-
token: "${{ steps.app-token.outputs.token }}"
62+
token: ${{ steps.app-token.outputs.token }}

.github/workflows/semantic-pull-request.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
name: semantic-pull-request
33

44
on:
5+
workflow_dispatch:
56
pull_request_target:
67
types:
78
- opened
@@ -15,6 +16,12 @@ jobs:
1516
semantic-pull-request:
1617
runs-on: ubuntu-latest
1718
steps:
19+
- uses: actions/create-github-app-token@31c86eb3b33c9b601a1f60f98dcbfd1d70f379b4 # v1.10.3
20+
id: app-token
21+
with:
22+
app-id: ${{ secrets.MY_RENOVATE_GITHUB_APP_ID }}
23+
private-key: ${{ secrets.MY_RENOVATE_GITHUB_PRIVATE_KEY }}
24+
1825
- uses: amannn/action-semantic-pull-request@0723387faaf9b38adef4775cd42cfd5155ed6017 # v5.5.3
1926
env:
20-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
27+
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}

.github/workflows/stale.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
name: stale
33

44
on:
5+
workflow_dispatch:
56
schedule:
67
- cron: "9 9 * * *"
78

.mega-linter.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ REPOSITORY_DEVSKIM_ARGUMENTS: --ignore-globs CHANGELOG.md --ignore-rule-ids DS16
3838

3939
REPOSITORY_KICS_ARGUMENTS: --fail-on high
4040

41-
REPOSITORY_TRIVY_ARGUMENTS: --ignorefile .trivyignore.yaml --severity HIGH,CRITICAL
41+
REPOSITORY_TRIVY_ARGUMENTS: --ignorefile .trivyignore.yaml --severity HIGH,CRITICAL --ignore-unfixed
4242

4343
TERRAFORM_TFLINT_UNSECURED_ENV_VARIABLES:
4444
- GITHUB_TOKEN

lychee.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,13 @@ exclude = [
3131
# Ignore all URLs with '{ ... }' - BASH / Ansible variable in URL
3232
'%7B.*%7D',
3333
# Ignore all URLs which starts with 'file://'
34-
'file://'
34+
'file://',
3535
]
3636

3737
# Exclude these filesystem paths from getting checked
3838
exclude_path = [
3939
"CHANGELOG.md",
40+
"package-lock.json",
4041
]
4142

4243
# Exclude all private IPs from checking.

0 commit comments

Comments
 (0)