Skip to content

Commit

Permalink
fix: release ci
Browse files Browse the repository at this point in the history
Signed-off-by: Moritz Johner <[email protected]>
  • Loading branch information
moolen committed Sep 30, 2022
1 parent 14c7dd6 commit 531a3b1
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 18 deletions.
7 changes: 6 additions & 1 deletion .github/actions/sign/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,14 @@ runs:

- name: Sign image
shell: bash
env:
COSIGN_EXPERIMENTAL: "1"
run: cosign sign -a GITHUB_ACTOR=${{ github.triggering_actor }} "${{ inputs.image-name }}@${{ steps.container_info.outputs.digest }}"

- name: Attach SBOM to image
shell: bash
env:
COSIGN_EXPERIMENTAL: "1"
run: |
syft "${{ inputs.image-name }}@${{ steps.container_info.outputs.digest }}" -o spdx-json=sbom-spdx.json
cosign attest --predicate sbom-spdx.json --type spdx "${{ inputs.image-name }}@${{ steps.container_info.outputs.digest }}"
Expand All @@ -72,11 +76,12 @@ runs:
subcommand: container
arguments: --repository "${{ inputs.image-name }}" --output-path provenance.att --digest "${{ steps.container_info.outputs.digest }}" --tags "${{ inputs.image-tag }}"
env:
COSIGN_EXPERIMENTAL: "0"
GITHUB_TOKEN: "${{ inputs.GITHUB_TOKEN }}"

- name: Attach provenance
shell: bash
env:
COSIGN_EXPERIMENTAL: "1"
run: |
jq '.predicate' provenance.att > provenance-predicate.att
cosign attest --predicate provenance-predicate.att --type slsaprovenance "${{ inputs.image-name }}@${{ steps.container_info.outputs.digest }}"
Expand Down
13 changes: 0 additions & 13 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ on:

env:
IMAGE_NAME: ghcr.io/moolen/logistis
COSIGN_EXPERIMENTAL: "1"

jobs:
docker:
Expand Down Expand Up @@ -69,15 +68,3 @@ jobs:
image-name: ${{ env.IMAGE_NAME }}
image-tag: ${{ needs.docker.outputs.image-tag }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

release:
if: startsWith(github.ref, 'refs/tags/')
needs: docker
runs-on: ubuntu-latest
steps:
- name: Create Release
uses: softprops/action-gh-release@v1
with:
body: |
## Container Image
${{ env.IMAGE_REPO }}:${{ steps.version.outputs.version }}
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ on:

env:
IMAGE_REPO: ghcr.io/moolen/logistis
COSIGN_EXPERIMENTAL: "1"

jobs:
release:
Expand All @@ -26,6 +25,7 @@ jobs:
runs-on: ubuntu-latest
permissions:
packages: write
contents: write
id-token: write
strategy:
matrix:
Expand Down
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,9 @@ It allows you to:
- [x] `kubectl blame` plugin to inspect changes
- [x] overview on a cluster-global level: latest changes by namespace
- [x] latest changes per-namespace
* add `/lock` API to lock down namespaces or resources from particular users
* distributed event storage 🤷
- [x] make event limit configurable (currently max 100 events per resource)
- add predicate functions to decide whether or not to capture a event
- [x] add predicate functions to decide whether or not to capture a event
- [ ] distributed event storage 🤷

### Quickstart

Expand Down

0 comments on commit 531a3b1

Please sign in to comment.