forked from in-toto/witness
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into checking-new-attestors
Signed-off-by: Tom Meadows <[email protected]>
- Loading branch information
Showing
16 changed files
with
409 additions
and
131 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Copyright 2023 The Witness Contributors | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
# CLOMonitor metadata file | ||
# This file must be located at the root of the repository | ||
|
||
# Checks exemptions | ||
exemptions: | ||
- check: artifacthub_badge # Check identifier (see https://github.com/cncf/clomonitor/blob/main/docs/checks.md#exemptions) | ||
reason: "Project is a CLI tool and is not one of the support types for Artifact Hub" # Justification of this exemption (mandatory, it will be displayed on the UI) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
name: "Fossa Scan" | ||
|
||
on: | ||
push: | ||
branches: ["main"] | ||
pull_request: | ||
# The branches below must be a subset of the branches above | ||
branches: ["main"] | ||
schedule: | ||
- cron: "0 0 * * 1" | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
fossa-scan: | ||
env: | ||
FOSSA_API_KEY: ${{ secrets.fossaApiKey }} | ||
runs-on: ubuntu-latest | ||
steps: | ||
- if: ${{ env.FOSSA_API_KEY != '' }} | ||
name: "Checkout Code" | ||
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | ||
- if: ${{ env.FOSSA_API_KEY != '' }} | ||
name: "Run FOSSA Scan" | ||
uses: fossas/fossa-action@f61a4c0c263690f2ddb54b9822a719c25a7b608f # v1.3.1 | ||
with: | ||
api-key: ${{ env.FOSSA_API_KEY }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
# Environment Dependencies Policy | ||
|
||
## Purpose | ||
|
||
This policy describes how Witness maintainers consume third-party packages. | ||
|
||
## Scope | ||
|
||
This policy applies to all Witness maintainers and all third-party packages used in the Witness project. | ||
|
||
## Policy | ||
|
||
Witness maintainers must follow these guidelines when consuming third-party packages: | ||
|
||
- Only use third-party packages that are necessary for the functionality of Witness. | ||
- Use the latest version of all third-party packages whenever possible. | ||
- Avoid using third-party packages that are known to have security vulnerabilities. | ||
- Pin all third-party packages to specific versions in the Witness codebase. | ||
- Use a dependency management tool, such as Go modules, to manage third-party dependencies. | ||
|
||
## Procedure | ||
|
||
When adding a new third-party package to Witness, maintainers must follow these steps: | ||
|
||
1. Evaluate the need for the package. Is it necessary for the functionality of Witness? | ||
2. Research the package. Is it well-maintained? Does it have a good reputation? | ||
3. Choose a version of the package. Use the latest version whenever possible. | ||
4. Pin the package to the specific version in the Witness codebase. | ||
5. Update the Witness documentation to reflect the new dependency. | ||
|
||
## Enforcement | ||
|
||
This policy is enforced by the Witness maintainers. | ||
Maintainers are expected to review each other's code changes to ensure that they comply with this policy. | ||
|
||
## Exceptions | ||
|
||
Exceptions to this policy may be granted by the Witness project lead on a case-by-case basis. | ||
|
||
## Credits | ||
|
||
This policy was adapted from the [Kubescape Community](https://github.com/kubescape/kubescape/blob/master/docs/environment-dependencies-policy.md) |
Oops, something went wrong.