From 696c3da82ed3bc300eccb90814954e191cb21cfb Mon Sep 17 00:00:00 2001 From: coder12git Date: Tue, 19 Dec 2023 12:17:57 +0530 Subject: [PATCH 1/6] added CI steps Signed-off-by: coder12git --- .github/workflows/release.yaml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index d361a6e681..7a135483d1 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -11,6 +11,17 @@ jobs: - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 with: fetch-depth: 0 + + - name: Set tag output + id: tag + run: echo "tag_name=${GITHUB_REF#refs/*/}" >> "$GITHUB_OUTPUT" + + - name: Install tejolote + uses: kubernetes-sigs/release-actions/setup-tejolote@dd08496c83441d6477114cc0555b96d404dacff7 # v0.1.2 + + - run: | + tejolote attest --artifacts github://kubernetes-sigs/karpenter/${{ steps.tag.outputs.tag_name }} github://kubernetes-sigs/karpenter/"${GITHUB_RUN_ID}" --output karpenter.intoto.json --sign + - name: Create Github Release uses: marvinpinto/action-automatic-releases@919008cf3f741b179569b7a6fb4d8860689ab7f0 # v1.2.1 with: From 252e6b6befca63ea96b5f1ae086436478d9c6ee4 Mon Sep 17 00:00:00 2001 From: coder12git Date: Tue, 19 Dec 2023 12:21:49 +0530 Subject: [PATCH 2/6] test Signed-off-by: coder12git --- .github/workflows/release.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 7a135483d1..835f2e3123 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -11,7 +11,7 @@ jobs: - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 with: fetch-depth: 0 - + - name: Set tag output id: tag run: echo "tag_name=${GITHUB_REF#refs/*/}" >> "$GITHUB_OUTPUT" @@ -20,7 +20,7 @@ jobs: uses: kubernetes-sigs/release-actions/setup-tejolote@dd08496c83441d6477114cc0555b96d404dacff7 # v0.1.2 - run: | - tejolote attest --artifacts github://kubernetes-sigs/karpenter/${{ steps.tag.outputs.tag_name }} github://kubernetes-sigs/karpenter/"${GITHUB_RUN_ID}" --output karpenter.intoto.json --sign + tejolote attest --artifacts github://coder12git/karpenter/${{ steps.tag.outputs.tag_name }} github://coder12git/karpenter/"${GITHUB_RUN_ID}" --output karpenter.intoto.json --sign - name: Create Github Release uses: marvinpinto/action-automatic-releases@919008cf3f741b179569b7a6fb4d8860689ab7f0 # v1.2.1 From d257bf66e0d84a7f0afa20c9997a725a48c7e9e9 Mon Sep 17 00:00:00 2001 From: coder12git Date: Tue, 19 Dec 2023 12:50:40 +0530 Subject: [PATCH 3/6] Revert "test" This reverts commit 252e6b6befca63ea96b5f1ae086436478d9c6ee4. --- .github/workflows/release.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index adb20b2b66..4b71d2320f 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -13,7 +13,7 @@ jobs: - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 with: fetch-depth: 0 - + - name: Set tag output id: tag run: echo "tag_name=${GITHUB_REF#refs/*/}" >> "$GITHUB_OUTPUT" @@ -22,7 +22,7 @@ jobs: uses: kubernetes-sigs/release-actions/setup-tejolote@dd08496c83441d6477114cc0555b96d404dacff7 # v0.1.2 - run: | - tejolote attest --artifacts github://coder12git/karpenter/${{ steps.tag.outputs.tag_name }} github://coder12git/karpenter/"${GITHUB_RUN_ID}" --output karpenter.intoto.json --sign + tejolote attest --artifacts github://kubernetes-sigs/karpenter/${{ steps.tag.outputs.tag_name }} github://kubernetes-sigs/karpenter/"${GITHUB_RUN_ID}" --output karpenter.intoto.json --sign - name: Create Github Release uses: marvinpinto/action-automatic-releases@919008cf3f741b179569b7a6fb4d8860689ab7f0 # v1.2.1 From 7d83c92d20e1c53ffbb3855e4fcbef4800f04d97 Mon Sep 17 00:00:00 2001 From: coder12git Date: Tue, 19 Dec 2023 22:09:20 +0530 Subject: [PATCH 4/6] changes Signed-off-by: coder12git --- .github/workflows/release.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 4b71d2320f..40eee84124 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -22,10 +22,11 @@ jobs: uses: kubernetes-sigs/release-actions/setup-tejolote@dd08496c83441d6477114cc0555b96d404dacff7 # v0.1.2 - run: | - tejolote attest --artifacts github://kubernetes-sigs/karpenter/${{ steps.tag.outputs.tag_name }} github://kubernetes-sigs/karpenter/"${GITHUB_RUN_ID}" --output karpenter.intoto.json --sign + tejolote attest --artifacts github://kubernetes-sigs/karpenter/${{ github.ref_name }} github://kubernetes-sigs/karpenter/"${{ github.run_id }}" --output karpenter.intoto.json --sign - name: Create Github Release uses: marvinpinto/action-automatic-releases@919008cf3f741b179569b7a6fb4d8860689ab7f0 # v1.2.1 with: + files: karpenter.intoto.json repo_token: "${{ secrets.GITHUB_TOKEN }}" prerelease: false From d52b461c94bdb819aba5447180b6b1762ff95b9e Mon Sep 17 00:00:00 2001 From: coder12git Date: Tue, 26 Dec 2023 10:25:52 +0530 Subject: [PATCH 5/6] added tag and remove output step Signed-off-by: coder12git --- .github/workflows/release.yaml | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 40eee84124..de257bcc7d 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -13,16 +13,15 @@ jobs: - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 with: fetch-depth: 0 - - - name: Set tag output - id: tag - run: echo "tag_name=${GITHUB_REF#refs/*/}" >> "$GITHUB_OUTPUT" - name: Install tejolote uses: kubernetes-sigs/release-actions/setup-tejolote@dd08496c83441d6477114cc0555b96d404dacff7 # v0.1.2 - - run: | - tejolote attest --artifacts github://kubernetes-sigs/karpenter/${{ github.ref_name }} github://kubernetes-sigs/karpenter/"${{ github.run_id }}" --output karpenter.intoto.json --sign + - name: Run tejolote + env: + TAG: ${{ github.ref_name }} + run: | + tejolote attest --artifacts github://kubernetes-sigs/karpenter/${TAG} github://kubernetes-sigs/karpenter/"${{ github.run_id }}" --output karpenter.intoto.json --sign - name: Create Github Release uses: marvinpinto/action-automatic-releases@919008cf3f741b179569b7a6fb4d8860689ab7f0 # v1.2.1 From 45e9669f6acb220a20b413f91568dcf88aa1cf1d Mon Sep 17 00:00:00 2001 From: coder12git Date: Tue, 26 Dec 2023 10:51:49 +0530 Subject: [PATCH 6/6] fix check Signed-off-by: coder12git --- .github/workflows/release.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index de257bcc7d..6f62de7d4b 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -21,7 +21,7 @@ jobs: env: TAG: ${{ github.ref_name }} run: | - tejolote attest --artifacts github://kubernetes-sigs/karpenter/${TAG} github://kubernetes-sigs/karpenter/"${{ github.run_id }}" --output karpenter.intoto.json --sign + tejolote attest --artifacts github://kubernetes-sigs/karpenter/"${TAG}" github://kubernetes-sigs/karpenter/"${{ github.run_id }}" --output karpenter.intoto.json --sign - name: Create Github Release uses: marvinpinto/action-automatic-releases@919008cf3f741b179569b7a6fb4d8860689ab7f0 # v1.2.1