Skip to content

Commit 83ef0f4

Browse files
authored
chore: Gosec - enable security linting (#112)
#### What this PR does / why we need it see: open-component-model/ocm-project#270 #### Which issue(s) this PR fixes fixes: #111
1 parent 5edcdbb commit 83ef0f4

File tree

3 files changed

+20
-2
lines changed

3 files changed

+20
-2
lines changed

.github/workflows/code-scan.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: "Code scanning"
2+
3+
on:
4+
push:
5+
branches: ["main"]
6+
pull_request:
7+
branches: ["main"]
8+
9+
jobs:
10+
gosec:
11+
permissions:
12+
# Required to upload SARIF files
13+
security-events: write
14+
# for actions/checkout to fetch code
15+
contents: read
16+
# call reusable workflow from central '.github' repo
17+
uses: open-component-model/.github/.github/workflows/code-scan.yml@main
18+
secrets: inherit

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,6 @@ OCM follows the [CNCF Code of Conduct](https://github.com/cncf/foundation/blob/m
182182

183183
## Licensing
184184

185-
Copyright 2022-2023 SAP SE or an SAP affiliate company and Open Component Model contributors.
185+
Copyright 2025 SAP SE or an SAP affiliate company and Open Component Model contributors.
186186
Please see our [LICENSE](LICENSE) for copyright and license information.
187187
Detailed information including third-party components and their licensing/copyright information is available [via the REUSE tool](https://api.reuse.software/info/github.com/open-component-model/replication-controller).

REUSE.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@ SPDX-PackageComment = "The code in this project may include calls to APIs (\"API
77
[[annotations]]
88
path = "**"
99
precedence = "aggregate"
10-
SPDX-FileCopyrightText = "2022 SAP SE or an SAP affiliate company and Open Component Model contributors"
10+
SPDX-FileCopyrightText = "2025 SAP SE or an SAP affiliate company and Open Component Model contributors"
1111
SPDX-License-Identifier = "Apache-2.0"

0 commit comments

Comments
 (0)