Skip to content

Commit

Permalink
Verify image on action (#169)
Browse files Browse the repository at this point in the history
* Verify image on action

* Fix validate
  • Loading branch information
pvizeli authored Jun 9, 2023
1 parent 093359f commit 182db11
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ inputs:
runs:
using: "composite"
steps:
- name: Install Cosign
uses: sigstore/cosign-installer@v3.0.5
with:
cosign-release: "v2.0.2"

- shell: bash
id: version
run: |
Expand All @@ -20,6 +25,10 @@ runs:
- shell: bash
run: |
docker pull ghcr.io/home-assistant/amd64-builder:${{ steps.version.outputs.version }}
cosign verify \
--certificate-oidc-issuer https://token.actions.githubusercontent.com \
--certificate-identity-regexp https://github.com/home-assistant/builder/.* \
ghcr.io/home-assistant/amd64-builder:${{ steps.version.outputs.version }}
- shell: bash
id: builder
Expand Down

0 comments on commit 182db11

Please sign in to comment.