Skip to content

Commit 1aab524

Browse files
Merge pull request #64 from xingzhang-suse/main
Added build job for CI, replace dependabot into renovate, fixed some typo bugs
2 parents 481f779 + 38ea13e commit 1aab524

File tree

9 files changed

+76
-11
lines changed

9 files changed

+76
-11
lines changed

.github/dependabot.yml

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

.github/renovate.json

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"extends": [
3+
"github>rancher/renovate-config#release"
4+
],
5+
"baseBranches": [
6+
"main"
7+
],
8+
"prHourlyLimit": 2,
9+
"vulnerabilityAlerts": {
10+
"enabled": true
11+
},
12+
"osvVulnerabilityAlerts": true,
13+
"packageRules": [
14+
{
15+
"enabled": false,
16+
"matchPackageNames": [
17+
"*"
18+
]
19+
}
20+
]
21+
}

.github/workflows/release.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Build and Release Extension Charts
2+
3+
on:
4+
release:
5+
types: [prereleased, released]
6+
7+
defaults:
8+
run:
9+
shell: bash
10+
working-directory: ./
11+
12+
jobs:
13+
build-extension-charts:
14+
uses: rancher/dashboard/.github/workflows/build-extension-charts.yml@master
15+
permissions:
16+
actions: write
17+
contents: write
18+
deployments: write
19+
pages: write
20+
with:
21+
target_branch: gh-pages
22+
tagged_release: ${{ github.ref_name }}
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Renovate
2+
on:
3+
workflow_dispatch:
4+
inputs:
5+
logLevel:
6+
description: "Override default log level"
7+
required: false
8+
default: "info"
9+
type: string
10+
overrideSchedule:
11+
description: "Override all schedules"
12+
required: false
13+
default: "false"
14+
type: string
15+
# Run twice in the early morning (UTC) for initial and follow up steps (create pull request and merge)
16+
schedule:
17+
- cron: '30 4,6 * * *'
18+
19+
permissions:
20+
contents: read
21+
id-token: write
22+
23+
jobs:
24+
call-workflow:
25+
uses: rancher/renovate-config/.github/workflows/renovate-vault.yml@release
26+
with:
27+
logLevel: ${{ inputs.logLevel || 'info' }}
28+
overrideSchedule: ${{ github.event.inputs.overrideSchedule == 'true' && '{''schedule'':null}' || '' }}
29+
secrets: inherit

.github/workflows/ci.yml renamed to .github/workflows/unit-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: CI
1+
name: Unit test
22
on: [push, pull_request]
33
jobs:
44
test:

pkg/sbombastic-image-vulnerability-scanner/config/sbombastic-image-vulnerability-scanner.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ export function init($plugin: IPlugin, store: any) {
3939
});
4040

4141
virtualType({
42-
label: store.getters["i18n/t"]("image_scanner.vulnerabilities.title"),
42+
labelKey: "imageScanner.vulnerabilities.title",
4343
name: PAGE.VULNERABILITY_OVERVIEW,
4444
namespaced: false,
4545
route: {
File renamed without changes.
File renamed without changes.

pkg/sbombastic-image-vulnerability-scanner/routes/sbombastic-image-vulnerability-scanner-routes.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import RegistryDetails from "@sbombastic-image-vulnerability-scanner/components/RegistryDetails.vue";
22
import ComponentDemo from "@sbombastic-image-vulnerability-scanner/pages/c/_cluster/sbombastic-image-vulnerability-scanner/ComponentDemo.vue";
33
import ImageOverview from "@sbombastic-image-vulnerability-scanner/pages/c/_cluster/sbombastic-image-vulnerability-scanner/ImageOverview.vue";
4-
import Registries from "@sbombastic-image-vulnerability-scanner/pages/c/_cluster/sbombastic-image-vulnerability-scanner/registries.vue";
5-
import Vulnerabilities from "@sbombastic-image-vulnerability-scanner/pages/c/_cluster/sbombastic-image-vulnerability-scanner/vulnerabilities.vue";
4+
import Registries from "@sbombastic-image-vulnerability-scanner/pages/c/_cluster/sbombastic-image-vulnerability-scanner/Registries.vue";
5+
import Vulnerabilities from "@sbombastic-image-vulnerability-scanner/pages/c/_cluster/sbombastic-image-vulnerability-scanner/Vulnerabilities.vue";
66

77
import {
88
PRODUCT_NAME,

0 commit comments

Comments
 (0)