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' of github.com:in-toto/witness into fixing-policy-…
…file-error Signed-off-by: chaosinthecrd <[email protected]>
- Loading branch information
Showing
77 changed files
with
11,226 additions
and
1,368 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,26 @@ | ||
--- | ||
name: Bug report | ||
about: Create a report to help us improve | ||
title: '[Bug]: ' | ||
labels: ['bug', triage'] | ||
assignees: '' | ||
--- | ||
|
||
**What steps did you take and what happened:** | ||
|
||
[A clear and concise description of what the bug is.] | ||
|
||
**What did you expect to happen:** | ||
|
||
[Expected outcome listed here.] | ||
|
||
**Anything else you would like to add:** | ||
|
||
[Miscellaneous information that will assist in solving the issue.] | ||
|
||
**Environment:** | ||
|
||
- Witness version: | ||
- Architecture: | ||
- Attestors used: | ||
- Archivista version: |
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,36 @@ | ||
--- | ||
name: Feature request | ||
about: Suggest an idea for this project | ||
title: '[Feat]: ' | ||
labels: ['feature', 'triage'] | ||
assignees: '' | ||
|
||
--- | ||
|
||
**Describe the solution you'd like:** | ||
|
||
[A clear and concise description of what you want to happen.] | ||
|
||
**User value:** | ||
|
||
[Why will this feature be valuable to you? Why will this be valuable to others?] | ||
|
||
**Expected behavior:** | ||
|
||
[What would you like to see happen] | ||
|
||
**Proposed solution:** | ||
|
||
[If you're able, describe possible solution workflow] | ||
|
||
**Anything else you would like to add:** | ||
|
||
[Miscellaneous information that will assist in solving the issue.] | ||
|
||
**Testing changes required:** | ||
|
||
[List possible testing changes required, if none please explain, if unsure assignee will assist] | ||
|
||
**Documentation changes required:** | ||
|
||
[List possible documentation changes required, if none please explain, if unsure assignee will assist] |
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,19 @@ | ||
## What this PR does / why we need it | ||
|
||
Description | ||
|
||
## Which issue(s) this PR fixes (optional) | ||
|
||
(optional, using `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close the issue(s) when the PR gets merged)* | ||
|
||
Fixes # | ||
|
||
## Acceptance Criteria Met | ||
|
||
- [ ] Docs changes if needed | ||
- [ ] Testing changes if needed | ||
- [ ] All workflow checks passing (automatically enforced) | ||
- [ ] All review conversations resolved (automatically enforced) | ||
- [ ] [DCO Sign-off](https://github.com/apps/dco) | ||
|
||
**Special notes for your reviewer**: |
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 |
---|---|---|
|
@@ -57,6 +57,20 @@ jobs: | |
artifact-upload-name: profile.cov | ||
artifact-upload-path: profile.cov | ||
|
||
e2e-test: | ||
needs: [fmt] | ||
uses: ./.github/workflows/witness.yml | ||
permissions: | ||
id-token: write # This is required for requesting the JWT | ||
contents: read | ||
with: | ||
pull_request: ${{ github.event_name == 'pull_request' }} | ||
step: e2e-test | ||
attestations: "git github environment" | ||
command: cd test/ && ./test.sh | ||
artifact-upload-name: profile.cov | ||
artifact-upload-path: profile.cov | ||
|
||
release: | ||
permissions: | ||
id-token: write | ||
|
@@ -68,15 +82,15 @@ jobs: | |
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | ||
uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Set up Go | ||
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0 | ||
with: | ||
go-version: 1.21.x | ||
- uses: actions/cache@704facf57e6136b1bc63b828d79edcd491f0ee84 # v3.3.2 | ||
- uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2 | ||
with: | ||
path: | | ||
~/go/pkg/mod | ||
|
@@ -86,20 +100,20 @@ jobs: | |
${{ runner.os }}-go- | ||
- name: Login to GitHub Container Registry | ||
uses: docker/login-action@343f7c4344506bcbf9b4de18042ae17996df046d # v3.0.0 | ||
uses: docker/login-action@e92390c5fb421da1463c202d546fed0ec5c39f20 # v3.1.0 | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Install Cosign | ||
uses: sigstore/cosign-installer@9614fae9e5c5eddabb09f90a270fcb487c9f7149 # v3.3.0 | ||
uses: sigstore/cosign-installer@e1523de7571e31dbe865fd2e80c5c7c23ae71eb4 # v3.4.0 | ||
|
||
- name: Download GoReleaser | ||
run: go install github.com/goreleaser/[email protected] | ||
|
||
- name: Run GoReleaser | ||
uses: testifysec/witness-run-action@40aa4ef36fc431a37de7c3faebcb66513c03b934 | ||
uses: testifysec/witness-run-action@2ae7f93c013ccf24b8ff52b4f042b32ca95ec7b8 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
GITHUB_REPOSITORY_OWNER: ${{ github.repository_owner }} | ||
|
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 |
---|---|---|
|
@@ -2,23 +2,23 @@ name: Verify License | |
on: | ||
workflow_dispatch: | ||
push: | ||
branches: ['main', 'release-*'] | ||
branches: ["main", "release-*"] | ||
pull_request: | ||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
license-check: | ||
name: license boilerplate check | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | ||
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0 | ||
with: | ||
go-version: '1.18.x' | ||
- name: Install addlicense | ||
run: go install github.com/google/[email protected] | ||
- name: Check license headers | ||
run: | | ||
set -e | ||
addlicense --check -l apache -c 'The Witness Contributors' -v * | ||
license-check: | ||
name: license boilerplate check | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2 | ||
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0 | ||
with: | ||
go-version: "1.21.x" | ||
- name: Install addlicense | ||
run: go install github.com/google/[email protected] | ||
- name: Check license headers | ||
run: | | ||
set -e | ||
addlicense --check -l apache -c 'The Witness Contributors' --ignore "docs-website/**" --ignore "docs/**" -v * |
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
Oops, something went wrong.