Skip to content

Commit

Permalink
Verify signed commit
Browse files Browse the repository at this point in the history
Signed-off-by: S m, Aruna <[email protected]>
  • Loading branch information
arsulegai committed Oct 21, 2024
1 parent 79c0c3c commit 324e934
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/verify-release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Verify signed container image

on:
workflow_dispatch:
inputs:
releaseVersion:
description: 'Release Version'
required: true
default: "1.0"
type: string

jobs:
build:
runs-on: ubuntu-latest

steps:
# Checkout code
- name: Checkout code
uses: actions/checkout@v4

# Step 2: Get the latest release of cosign github action
- uses: sigstore/[email protected]

# Step 3: Verify the container image
- name: Verifying the signed image
env:
version: "${{ github.event.inputs.releaseVersion }}"
run: |
cosign verify ghcr.io/${{ github.repository }}:${version} \
--certificate-oidc-issuer https://token.actions.githubusercontent.com \
--certificate-identity "https://github.com/${{ github.repository }}/.github/workflows/sign-release.yaml@refs/heads/main"

0 comments on commit 324e934

Please sign in to comment.