Skip to content

Commit

Permalink
Add github action to verify images
Browse files Browse the repository at this point in the history
Signed-off-by: Paulo Gomes <[email protected]>
  • Loading branch information
pjbgf committed Dec 5, 2024
1 parent 7171e4d commit 829dadc
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions actions/verify/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# This GitHub action verifies whether a given image has been signed using
# the cosign signature specification.
#
# This is meant to be used for Rancher Prime, or CNCF images that are part
# of the Rancher ecosystem.
#
# Reference usage:
# steps:
# ...
# - uses: rancherlabs/slsactl/actions/verify@main
# with:
# image: <registry>/<image>:<tag>

name: verify

inputs:
image:
description: |
The image name component in a fully qualified image. For reference:
<registry>/<repo>/<image>:<tag>.
required: true
type: string

runs:
using: composite

steps:
- uses: actions/setup-go@v5
with:
go-version: 'stable'

- name: Install slsactl
shell:
run: |
go install github.com/rancherlabs/slsactl@latest
- name: Verify image
shell: bash
run: |
slsactl verify ${{ env.IMAGE }}
env:
IMAGE: ${{ inputs.image }}

0 comments on commit 829dadc

Please sign in to comment.