mirror of
https://github.com/slsa-framework/slsa-verifier.git
synced 2026-08-18 02:56:31 +00:00
chore: Update Renovate config (#769)
# Summary Updates renovate config to use the [`config:best-practices`](https://docs.renovatebot.com/presets-config/#configbest-practices) preset rather than the `config:base` preset since `config:base` seems to be deprecated. Also updates the `schedule` config to use the [`schedule:monthly`](https://docs.renovatebot.com/presets-schedule/#schedulemonthly) preset. Also adds a pre-submit to run the [`renovate-config-validator`](https://docs.renovatebot.com/config-validation/) to ensure that renovate config is valid. This pre-submit will need to be made required in the repository branch protection rule for `main` in the repository settings after this PR is merged. --------- Signed-off-by: Ian Lewis <ianmlewis@gmail.com> Signed-off-by: Ian Lewis <ianlewis@google.com> Co-authored-by: Ramon Petgrave <32398091+ramonpetgrave64@users.noreply.github.com>
This commit is contained in:
co-authored by
Ramon Petgrave
parent
138a2348fc
commit
87b5bae6d4
@@ -43,7 +43,16 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
|
||||
- uses: actions/setup-node@v4
|
||||
- uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
|
||||
with:
|
||||
node-version: 16
|
||||
node-version: 20
|
||||
- run: make eslint
|
||||
|
||||
renovate-config-validator:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
|
||||
- uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
|
||||
with:
|
||||
node-version: 20
|
||||
- run: make renovate-config-validator
|
||||
|
||||
+25
-2
@@ -1,3 +1,26 @@
|
||||
# Ignore the .git directory (for markdownlint)
|
||||
.git
|
||||
|
||||
# Binaries for programs and plugins
|
||||
*.exe
|
||||
*.exe~
|
||||
*.dll
|
||||
*.so
|
||||
*.dylib
|
||||
|
||||
# Test binary, built with `go test -c`
|
||||
*.test
|
||||
|
||||
# Output of the go coverage tool, specifically when used with LiteIDE
|
||||
*.out
|
||||
|
||||
# Dependency directories (remove the comment below to include it)
|
||||
vendor/
|
||||
node_modules/
|
||||
|
||||
# Go workspace file
|
||||
go.work
|
||||
go.work.sum
|
||||
|
||||
# goland
|
||||
.idea
|
||||
node_modules
|
||||
vendor
|
||||
|
||||
@@ -70,7 +70,7 @@ markdown-toc: node_modules/.installed ## Runs markdown-toc on markdown files.
|
||||
#####################################################################
|
||||
|
||||
.PHONY: lint
|
||||
lint: golangci-lint eslint yamllint ## Run all linters.
|
||||
lint: golangci-lint eslint yamllint renovate-config-validator ## Run all linters.
|
||||
|
||||
.PHONY: golangci-lint
|
||||
golangci-lint: ## Runs the golangci-lint linter.
|
||||
@@ -93,3 +93,7 @@ yamllint: ## Runs the yamllint linter.
|
||||
extraargs="-f github"; \
|
||||
fi; \
|
||||
yamllint -c .yamllint.yaml . $$extraargs
|
||||
|
||||
.PHONY: renovate-config-validator
|
||||
renovate-config-validator: node_modules/.installed ## Runs renovate-config-validator
|
||||
@npm run renovate-config-validator
|
||||
|
||||
Generated
+12649
-14
File diff suppressed because it is too large
Load Diff
+4
-2
@@ -1,8 +1,10 @@
|
||||
{
|
||||
"scripts": {
|
||||
"markdown-toc": "markdown-toc --bullets='-' -i"
|
||||
"markdown-toc": "markdown-toc --bullets='-' -i",
|
||||
"renovate-config-validator": "renovate-config-validator --strict"
|
||||
},
|
||||
"devDependencies": {
|
||||
"markdown-toc": "^1.2.0"
|
||||
"markdown-toc": "^1.2.0",
|
||||
"renovate": "37.363.4"
|
||||
}
|
||||
}
|
||||
|
||||
+1
-2
@@ -1,7 +1,6 @@
|
||||
{
|
||||
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
|
||||
"extends": ["config:base", ":gitSignOff"],
|
||||
"schedule": ["before 4am on the first day of the month"],
|
||||
"extends": ["config:best-practices", "schedule:monthly"],
|
||||
"vulnerabilityAlerts": {
|
||||
"schedule": "before 4am"
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user