-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
167 additions
and
33 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 |
---|---|---|
|
@@ -356,7 +356,7 @@ jobs: | |
- name: Run Test - Attestation Tagged | ||
uses: ./ | ||
with: | ||
tags: test | ||
delete-tags: test | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Validate Test Results - Attestation Tagged | ||
run: | ||
|
@@ -414,10 +414,71 @@ jobs: | |
node citester/index.js --token ${{ secrets.GITHUB_TOKEN }} --directory | ||
tests/attestation-untagged --mode validate | ||
|
||
cosign-test: | ||
name: Cosign Test | ||
needs: github-attestation-tests | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version-file: .node-version | ||
cache: npm | ||
|
||
- name: Login to GitHub Container Registry | ||
uses: docker/login-action@v3 | ||
with: | ||
registry: ${{ env.REGISTRY }} | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
- id: lower-repo | ||
run: | | ||
echo "repository=${GITHUB_REPOSITORY@L}" >> $GITHUB_OUTPUT | ||
- name: Prime Test - Cosign Test | ||
run: | ||
node citester/index.js --token ${{ secrets.GITHUB_TOKEN }} --directory | ||
tests/cosign --mode prime | ||
|
||
- name: Build and push image | ||
uses: docker/[email protected] | ||
with: | ||
context: tests/cosign | ||
file: tests/cosign/Dockerfile.image | ||
push: true | ||
tags: | ||
${{ env.REGISTRY }}/${{ steps.lower-repo.outputs.repository | ||
}}:cosign | ||
|
||
- name: Install Cosign | ||
uses: sigstore/[email protected] | ||
|
||
- name: Sign container image | ||
run: | | ||
cosign sign -y ${{ env.REGISTRY }}/${{ steps.lower-repo.outputs.repository }}:cosign | ||
env: | ||
TAGS: cosign | ||
COSIGN_EXPERIMENTAL: false | ||
|
||
- name: Run Test - Cosign | ||
uses: ./ | ||
with: | ||
delete-tags: cosign | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Validate Test Results - Cosign | ||
run: | ||
node citester/index.js --token ${{ secrets.GITHUB_TOKEN }} --directory | ||
tests/cosign --mode validate | ||
|
||
multi-package-cleanup: | ||
name: Cleanup Multiple Packages | ||
runs-on: ubuntu-latest | ||
needs: github-attestation-tests | ||
needs: cosign-test | ||
|
||
steps: | ||
- name: Checkout | ||
|
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
Large diffs are not rendered by default.
Oops, something went wrong.
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,5 @@ | ||
FROM busybox:1.36.1-uclibc | ||
|
||
ENV DUMMY=VALUE | ||
USER user | ||
HEALTHCHECK CMD ls |
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 @@ | ||
sha256:1a41828fc1a347d7061f7089d6f0c94e5a056a3c674714712a1481a4a33eb56f |
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 @@ | ||
dummy |
Empty file.