Skip to content

Commit

Permalink
chore(action): Tailor defaults for Universal Blue
Browse files Browse the repository at this point in the history
  • Loading branch information
EyeCantCU committed Dec 24, 2023
1 parent 9060e51 commit 148541e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
1 change: 0 additions & 1 deletion .github/workflows/test-actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,6 @@ jobs:
uses: ./verify
with:
containers: ${{ matrix.image_name }}
pubkey: ./cosign.pub
registry: ghcr.io/${{ github.repository_owner }}

- name: Echo outputs
Expand Down
1 change: 1 addition & 0 deletions sign/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ inputs:
required: true
registry:
description: 'Registry where the container resides'
default: 'ghcr.io/ublue-os'
required: true
tags:
description: 'Tags used by target container'
Expand Down
8 changes: 5 additions & 3 deletions verify/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,14 @@ inputs:
required: true
pubkey:
description: 'Public key used by target container'
default: './cosign.pub'
required: false
oidc-issuer:
description: 'The certificate OIDC issuer'
required: false
registry:
description: 'Registry where the container resides'
default: 'ghcr.io/ublue-os'
required: true
runs:
using: "composite"
Expand All @@ -33,10 +35,10 @@ runs:
- name: Verify container
shell: bash
run: |
if [[ -n "${{ inputs.pubkey }}" ]]; then
cosign verify --key ${{ inputs.pubkey }} ${{ steps.normalized_registry.outputs }}/${CONTAINERS}
elif [[ -n "${{ inputs.cert-identity }}" && -n "${{ inputs.oidc-issuer }}" ]]; then
if [[ -n "${{ inputs.cert-identity }}" && -n "${{ inputs.oidc-issuer }}" ]]; then
cosign verify ${{ steps.normalized_registry.outputs }}/${CONTAINERS} --certificate-identity=${{ inputs.cert-identity }} --certificate-oidc-issuer=${{ inputs.oidc-issuer }}
elif [[ -n "${{ inputs.pubkey }}" ]]; then
cosign verify --key ${{ inputs.pubkey }} ${{ steps.normalized_registry.outputs }}/${CONTAINERS}
else
exit 1
fi
Expand Down

0 comments on commit 148541e

Please sign in to comment.