Skip to content

Commit 9b67b8d

Browse files
Merge pull request #110 from rexagod/os-master
NO-JIRA: Merge `v2.11.0` and `v2.12.0` tags
2 parents 8969a07 + 95471d1 commit 9b67b8d

File tree

1,256 files changed

+55931
-27181
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,256 files changed

+55931
-27181
lines changed

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,13 @@ If the matter is security related, please disclose it privately see https://gith
1818

1919
**How to reproduce it (as minimally and precisely as possible)**:
2020

21+
```bash
22+
# An example: https://github.com/kubernetes/kube-state-metrics/issues/2223#issuecomment-1792850276
23+
minikube start
24+
...
25+
go run main.go --custom-resource-state-only --custom-resource-state-config-file ksm-2223/custom-resource-config-file.yaml --kubeconfig ~/.kube/config
26+
```
27+
2128
**Anything else we need to know?**:
2229

2330
**Environment**:

.github/dependabot.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "gomod"
4+
directory: "/"
5+
groups:
6+
k8s-dependencies:
7+
patterns:
8+
- "k8s.io*"
9+
schedule:
10+
interval: "weekly"
11+
- package-ecosystem: "gomod"
12+
directory: "tools"
13+
schedule:
14+
interval: "weekly"
15+
- package-ecosystem: "github-actions"
16+
directory: "/"
17+
schedule:
18+
interval: "weekly"

.github/workflows/ci.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
uses: actions/checkout@v3
3333

3434
- name: Set up Go 1.x
35-
uses: actions/setup-go@v4
35+
uses: actions/setup-go@v5
3636
with:
3737
go-version: ${{ env.GO_VERSION }}
3838
id: go
@@ -54,7 +54,7 @@ jobs:
5454
uses: actions/checkout@v3
5555

5656
- name: Set up Go 1.x
57-
uses: actions/setup-go@v4
57+
uses: actions/setup-go@v5
5858
with:
5959
go-version: ${{ env.GO_VERSION }}
6060
id: go
@@ -75,7 +75,7 @@ jobs:
7575
uses: actions/checkout@v3
7676

7777
- name: Set up Go 1.x
78-
uses: actions/setup-go@v4
78+
uses: actions/setup-go@v5
7979
with:
8080
go-version: ${{ env.GO_VERSION }}
8181
id: go
@@ -96,7 +96,7 @@ jobs:
9696
uses: actions/checkout@v3
9797

9898
- name: Set up Go 1.x
99-
uses: actions/setup-go@v4
99+
uses: actions/setup-go@v5
100100
with:
101101
go-version: ${{ env.GO_VERSION }}
102102
id: go
@@ -105,7 +105,7 @@ jobs:
105105
run: |
106106
make install-tools
107107
108-
- name: Check that all metrics are documented
108+
- name: Check that all metrics are documented and templates have no delta
109109
run: |
110110
make doccheck
111111
@@ -117,7 +117,7 @@ jobs:
117117
uses: actions/checkout@v3
118118

119119
- name: Set up Go 1.x
120-
uses: actions/setup-go@v4
120+
uses: actions/setup-go@v5
121121
with:
122122
go-version: ${{ env.GO_VERSION }}
123123
id: go
@@ -153,7 +153,7 @@ jobs:
153153
uses: actions/checkout@v3
154154

155155
- name: Set up Go 1.x
156-
uses: actions/setup-go@v4
156+
uses: actions/setup-go@v5
157157
with:
158158
go-version: ${{ env.GO_VERSION }}
159159
id: go
@@ -174,7 +174,7 @@ jobs:
174174
uses: actions/checkout@v3
175175

176176
- name: Set up Go 1.x
177-
uses: actions/setup-go@v4
177+
uses: actions/setup-go@v5
178178
with:
179179
go-version: ${{ env.GO_VERSION }}
180180
id: go
@@ -195,7 +195,7 @@ jobs:
195195
uses: actions/checkout@v3
196196

197197
- name: Set up Go 1.x
198-
uses: actions/setup-go@v4
198+
uses: actions/setup-go@v5
199199
with:
200200
go-version: ${{ env.GO_VERSION }}
201201
id: go

.github/workflows/govulncheck.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,17 @@ on:
88
env:
99
GO_VERSION: "^1.20"
1010

11+
permissions:
12+
contents: read
13+
1114
jobs:
1215
ci-security-checks:
1316
runs-on: ubuntu-latest
1417
steps:
1518
- uses: actions/checkout@v3
1619
name: Checkout code
1720
- name: Set up Go 1.x
18-
uses: actions/setup-go@v4
21+
uses: actions/setup-go@v5
1922
with:
2023
go-version: ${{ env.GO_VERSION }}
2124
- name: Install govulncheck binary

.github/workflows/openvex.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: openvex
2+
3+
on:
4+
workflow_dispatch:
5+
release:
6+
types: [published]
7+
jobs:
8+
vexctl:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Checkout code
12+
uses: actions/checkout@v4
13+
- name: Set environment variables
14+
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
15+
- uses: openvex/generate-vex@c59881b41451d7ccba5c3b74cd195382b8971fcd
16+
# Refer: https://github.com/openvex/vexctl#operational-model
17+
name: Run vexctl
18+
with:
19+
product: pkg:golang/k8s.io/kube-state-metrics/v2@${{ env.RELEASE_VERSION }}

.github/workflows/semantic.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,14 @@ on:
77
- edited
88
- synchronize
99

10+
permissions:
11+
contents: read
12+
1013
jobs:
1114
main:
15+
permissions:
16+
pull-requests: read # for amannn/action-semantic-pull-request to analyze PRs
17+
statuses: write # for amannn/action-semantic-pull-request to mark status of analyzed PR
1218
name: Validate PR title for semantic commit message
1319
runs-on: ubuntu-latest
1420
steps:

.openvex/templates/README.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# OpenVEX Templates Directory
2+
3+
This directory contains the OpenVEX data for this repository.
4+
The files stored in this directory are used as templates by
5+
`vexctl generate` when generating VEX data for a release or
6+
a specific artifact.
7+
8+
To add new statements to publish data about a vulnerability,
9+
download [vexctl](https://github.com/openvex/vexctl)
10+
and append new statements using `vexctl add`. For example:
11+
12+
```
13+
vexctl add --in-place main.openvex.json pkg:oci/test CVE-2014-1234567 fixed
14+
```
15+
16+
That will add a new VEX statement expressing that the impact of
17+
CVE-2014-1234567 is under investigation in the test image. When
18+
cutting a new release, for `pkg:oci/test` the new file will be
19+
incorporated to the relase's VEX data.
20+
21+
## Read more about OpenVEX
22+
23+
To know more about generating, publishing and using VEX data
24+
in your project, please check out the [vexctl repository and
25+
documentation](https://github.com/openvex/vexctl).
26+
27+
OpenVEX also has an [examples repository](https://github.com/openvex/examples)
28+
with samples and docs.
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"@context": "https://openvex.dev/ns/v0.2.0",
3+
"@id": "https://openvex.dev/docs/public/vex-2912204db7d51d98234a931d600f7cc2dd0bf24a5b5b326de138d64b30c22911",
4+
"author": "vexctl (automated template)",
5+
"timestamp": "2023-12-15T22:55:18.754525+05:30",
6+
"version": 1,
7+
"statements": []
8+
}

0 commit comments

Comments
 (0)