Skip to content

Commit 91efe2c

Browse files
authored
feat(gh): add default github repo files (#549)
1 parent 907754d commit 91efe2c

File tree

5 files changed

+26
-16
lines changed

5 files changed

+26
-16
lines changed

.github/renovate.json5

+5-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
{
22
$schema: "https://docs.renovatebot.com/renovate-schema.json",
3+
// # keep-sorted start block=yes
4+
"git-submodules": {
5+
enabled: true,
6+
},
37
// Keep the extends started with ":" at the end of the list to allow overriding
48
extends: [
59
"config:recommended",
@@ -12,9 +16,6 @@
1216
":enableVulnerabilityAlertsWithLabel(security)",
1317
":pinSkipCi",
1418
],
15-
"git-submodules": {
16-
enabled: true,
17-
},
1819
labels: [
1920
"renovate",
2021
"renovate/{{replace '.*/' '' depName}}",
@@ -55,4 +56,5 @@
5556
},
5657
],
5758
separateMinorPatch: true,
59+
// # keep-sorted end
5860
}

.github/workflows/mega-linter.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
timeout-minutes: 30
1616
steps:
1717
- name: Checkout Code
18-
uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1
18+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
1919

2020
- name: Restore lychee cache
2121
uses: actions/cache@6849a6489940f00c2f30c0fb92c6274307ccb58a # v4.1.2
@@ -37,7 +37,7 @@ jobs:
3737
chmod a+x README.sh
3838
3939
- name: 💡 MegaLinter
40-
uses: oxsecurity/megalinter@b38cdf1f0cbe056fad4112cb7cd99c2b574c9617 # v8.1.0
40+
uses: oxsecurity/megalinter@d8c95fc6f2237031fb9e9322b0f97100168afa6e # v8.2.0
4141
env:
4242
GITHUB_COMMENT_REPORTER: false
4343
# Disabled due to error: [GitHub Status Reporter] Error posting Status for REPOSITORY with ...: 403

.github/workflows/renovate.yml

+11-9
Original file line numberDiff line numberDiff line change
@@ -23,20 +23,22 @@ on:
2323
- cron: 0 0-3 * * 0
2424

2525
env:
26+
# keep-sorted start
2627
# https://docs.renovatebot.com/troubleshooting/#log-debug-levels
2728
LOG_LEVEL: ${{ inputs.logLevel || 'debug' }}
29+
RENOVATE_AUTOMERGE: "true"
30+
# Renovate Automerge
31+
RENOVATE_AUTOMERGE_TYPE: branch
32+
# https://docs.renovatebot.com/self-hosted-configuration/#dryrun
33+
# Run renovate in dry-run mode if executed in branches other than main - prevents versions in PRs/branches from being updated
34+
RENOVATE_DRY_RUN: ${{ inputs.dryRun || ( github.head_ref || github.ref_name ) != 'main' || false }}
35+
# https://docs.renovatebot.com/configuration-options/#platformcommit
36+
RENOVATE_PLATFORM_COMMIT: "true"
2837
# https://docs.renovatebot.com/self-hosted-configuration/#repositories
2938
RENOVATE_REPOSITORIES: ${{ github.repository }}
3039
# https://docs.renovatebot.com/self-hosted-configuration/#username
3140
RENOVATE_USERNAME: ${{ github.repository_owner }}
32-
# https://docs.renovatebot.com/configuration-options/#platformcommit
33-
RENOVATE_PLATFORM_COMMIT: "true"
34-
# https://docs.renovatebot.com/self-hosted-configuration/#dryrun
35-
# Run renovate in dry-run mode if executed in branches other than main - prevents versions in PRs/branches from being updated
36-
RENOVATE_DRY_RUN: ${{ inputs.dryRun || ( github.head_ref || github.ref_name ) != 'main' || false }}
37-
# Renovate Automerge
38-
RENOVATE_AUTOMERGE_TYPE: branch
39-
RENOVATE_AUTOMERGE: "true"
41+
# keep-sorted end
4042

4143
permissions: read-all
4244

@@ -48,7 +50,7 @@ jobs:
4850
permissions: write-all
4951
steps:
5052
- name: Checkout
51-
uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1
53+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
5254

5355
- uses: actions/create-github-app-token@5d869da34e18e7287c1daad50e0b8ea0f506ce69 # v1.11.0
5456
id: app-token

.github/workflows/stale.yml

+2
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ jobs:
1616
steps:
1717
- uses: actions/stale@28ca1036281a5e5922ead5184a1bbf96e5fc984e # v9.0.0
1818
with:
19+
# keep-sorted start
1920
close-issue-message: |
2021
This issue has not seen any activity since it was marked stale.
2122
Closing.
@@ -32,3 +33,4 @@ jobs:
3233
stale-pr-message: |
3334
This PR is stale because it has been open 60 days with no activity.
3435
Remove stale label or comment or this will be closed in 7 days.
36+
# keep-sorted end

.mega-linter.yml

+6-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
# Configuration file for MegaLinter
22
# See all available variables at https://megalinter.io/latest/configuration/ and in linters documentation
33

4+
# keep-sorted start newline_separated=yes
5+
ANSIBLE_ANSIBLE_LINT_CONFIG_FILE: ansible/.ansible-lint
6+
47
ANSIBLE_ANSIBLE_LINT_PRE_COMMANDS:
58
- command: ansible-galaxy install -r ansible/requirements.yml
69
cwd: "workspace"
7-
ANSIBLE_ANSIBLE_LINT_CONFIG_FILE: ansible/.ansible-lint
810

911
BASH_SHFMT_ARGUMENTS: --case-indent --indent 2 --space-redirects
1012

@@ -23,6 +25,7 @@ FILTER_REGEX_EXCLUDE: CHANGELOG.md
2325
FORMATTERS_DISABLE_ERRORS: false
2426

2527
MARKDOWN_MARKDOWNLINT_CONFIG_FILE: .markdownlint.yml
28+
2629
MARKDOWN_MARKDOWNLINT_FILTER_REGEX_EXCLUDE: CHANGELOG.md
2730

2831
# Remove initial MegaLinter graphic
@@ -38,11 +41,12 @@ REPOSITORY_DEVSKIM_ARGUMENTS: --ignore-globs CHANGELOG.md --ignore-rule-ids DS16
3841

3942
REPOSITORY_KICS_ARGUMENTS: --fail-on high
4043

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

4346
TERRAFORM_TFLINT_UNSECURED_ENV_VARIABLES:
4447
- GITHUB_TOKEN
4548

4649
TYPESCRIPT_PRETTIER_ARGUMENTS: --html-whitespace-sensitivity=ignore
4750

4851
VALIDATE_ALL_CODEBASE: true
52+
# keep-sorted end

0 commit comments

Comments
 (0)