Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Verify upstream cosign keys #25

Open
Venefilyn opened this issue Jul 8, 2024 · 2 comments
Open

Verify upstream cosign keys #25

Venefilyn opened this issue Jul 8, 2024 · 2 comments

Comments

@Venefilyn
Copy link

When the issue of cosign keys being rerolled in Bazzite I did not notice it at all due to using this template for my own spin https://github.com/Venefilyn/VeneOS/

We should add a step about verifying the upstream cosign keys. IIRC it is possible with cosign-installer

@xynydev
Copy link
Member

xynydev commented Jul 9, 2024

This can be done with @EyeCantCU 's GitHub Action too:
https://github.com/EyeCantCU/cosign-action?tab=readme-ov-file#verify

@xlionjuan
Copy link

    steps:
      - name: Checkout Push to Registry action
        uses: actions/checkout@v4

      - uses: sigstore/[email protected] # Moved from bottom, and disable if PR

      - name: Verify
        shell: bash
        run: |
          set -oue pipefail
          echo "---Grep image name---"
          containerfile_path="./Containerfile"
          image=$(grep -i '^FROM' "$containerfile_path" | awk '{print $2}')
          echo "Image: "${image}""
          echo ""
          echo "Using Cosign to verify image..."
          cosign verify \
            --key https://raw.githubusercontent.com/ublue-os/bluefin/refs/heads/main/cosign.pub \
            "${image}"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants