Skip to content

Commit 7991039

Browse files
authored
feat: trim ci (renovate, openssf) (#431)
* ci(ssfscorecard): adjust scorecard settings This PR trims the open ssf scorecard settings so that it A) runs twice a week only B) is runnable from GUI anytime A) As it is more of general health tool, there is no need to run it every commit to main. B) Leaves the option of being able to run it anytime Signed-off-by: Josef Andersson <josef.andersson@digg.se> * ci(renovate): use base renovate config This PR trims and aligns the renovate config to use the base organisation config. It eases the maintenance of administration, but still, it also makes sense when juggling many repositories. 100% compatible, i.e no functionality loss to current conf. Signed-off-by: Josef Andersson <josef.andersson@digg.se> * ci(reuseableci): pin sha and version Signed-off-by: Josef Andersson <josef.andersson@digg.se> --------- Signed-off-by: Josef Andersson <josef.andersson@digg.se>
1 parent bcb6429 commit 7991039

File tree

6 files changed

+35
-58
lines changed

6 files changed

+35
-58
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# SPDX-FileCopyrightText: 2025 Digg - Agency for Digital Government
2+
#
3+
# SPDX-License-Identifier: CC0-1.0
4+
5+
---
6+
name: OpenSSF Scorecard Analysis
7+
on:
8+
schedule:
9+
# Saturdays at 02:20 UTC
10+
- cron: "20 2 * * 6"
11+
# Wednesdays at 02:20 UTC
12+
- cron: "20 2 * * 3"
13+
workflow_dispatch:
14+
15+
permissions:
16+
contents: read
17+
18+
jobs:
19+
scorecard-analysis:
20+
permissions:
21+
contents: read
22+
security-events: write
23+
id-token: write
24+
uses: diggsweden/reusable-ci/.github/workflows/security-openssf-scorecard.yml@1a7dcd9c5257495ebf141e4e4b4bac438a8aae56 # v2.0.0
25+
with:
26+
publish-results: true

.github/workflows/openssfscorecard.yml

Lines changed: 0 additions & 22 deletions
This file was deleted.

.github/workflows/pullrequest-workflow.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ permissions:
1818

1919
jobs:
2020
pr-checks:
21-
uses: diggsweden/reusable-ci/.github/workflows/pullrequest-orchestrator.yml@v2
21+
uses: diggsweden/reusable-ci/.github/workflows/pullrequest-orchestrator.yml@1a7dcd9c5257495ebf141e4e4b4bac438a8aae56 # v2.0.0
2222
secrets: inherit # Pass org-level secrets (NPM token if private packages)
2323
permissions:
2424
contents: read # Clone repository and read source code

.github/workflows/release-dev-workflow.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
permissions:
3232
contents: read
3333
packages: write
34-
uses: diggsweden/reusable-ci/.github/workflows/release-dev-orchestrator.yml@v2
34+
uses: diggsweden/reusable-ci/.github/workflows/release-dev-orchestrator.yml@1a7dcd9c5257495ebf141e4e4b4bac438a8aae56 # v2.0.0
3535
with:
3636
project-type: npm
3737
package-scope: "@diggsweden"

.github/workflows/release-workflow.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ permissions:
2424

2525
jobs:
2626
release:
27-
uses: diggsweden/reusable-ci/.github/workflows/release-orchestrator.yml@v2
27+
uses: diggsweden/reusable-ci/.github/workflows/release-orchestrator.yml@1a7dcd9c5257495ebf141e4e4b4bac438a8aae56 # v2.0.0
2828
permissions:
2929
contents: write # Create GitHub releases, push changelog commits
3030
packages: write # Publish to GitHub Packages

renovate.json

Lines changed: 6 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,13 @@
11
{
22
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
3-
"osvVulnerabilityAlerts": true,
4-
"dependencyDashboardOSVVulnerabilitySummary": "all",
53
"extends": [
6-
"config:best-practices",
7-
"workarounds:all",
8-
"security:openssf-scorecard",
9-
":configMigration",
10-
":dependencyDashboard",
11-
":gitSignOff",
12-
":maintainLockFilesWeekly",
13-
":automergePatch",
14-
":semanticCommits",
15-
"security:minimumReleaseAgeNpm",
16-
":rebaseStalePrs",
17-
":semanticCommitTypeAll(chore)",
18-
"mergeConfidence:all-badges"
4+
"local>diggsweden/.github:renovate-base",
5+
":maintainLockFilesWeekly"
6+
],
7+
"enabledManagers": [
8+
"github-actions",
9+
"npm"
1910
],
20-
"commitMessageLowerCase": "auto",
21-
"minimumReleaseAge": "7 days",
22-
"labels": ["dependencies"],
23-
"vulnerabilityAlerts": {
24-
"labels": ["security", "dependencies"]
25-
},
26-
"timezone": "Europe/Stockholm",
2711
"platformAutomerge": false,
2812
"automergeSchedule": ["0 9-21 * * 6"],
2913
"packageRules": [
@@ -32,17 +16,6 @@
3216
"matchUpdateTypes": ["patch"],
3317
"automerge": true
3418
},
35-
{
36-
"matchManagers": ["github-actions"],
37-
"addLabels": ["actions"],
38-
"pinDigests": true,
39-
"groupName": "github actions"
40-
},
41-
{
42-
"matchManagers": ["github-actions"],
43-
"matchPackageNames": ["slsa-framework/slsa-github-generator"],
44-
"pinDigests": false
45-
},
4619
{
4720
"description": "Node.js dependencies - Major updates",
4821
"matchManagers": ["npm"],

0 commit comments

Comments
 (0)