-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Dependabot is also capable of pinning to future tag releases and will maintain the comment that descibes the shasum. dependabot/dependabot-core#4691 Signed-off-by: Marco Franssen <[email protected]>
- Loading branch information
1 parent
903776f
commit dc74857
Showing
3 changed files
with
22 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,10 +17,9 @@ jobs: | |
|
||
steps: | ||
- name: Checkout | ||
uses: actions/[email protected] | ||
|
||
uses: actions/checkout@755da8c3cf115ac066823e79a1e1788f8940201b # ratchet:actions/[email protected] | ||
- name: Set up Go | ||
uses: actions/[email protected] | ||
uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # ratchet:actions/setup-go@v3.5.0 | ||
with: | ||
go-version-file: go.mod | ||
check-latest: true | ||
|
@@ -49,7 +48,7 @@ jobs: | |
run: make coverage-out | ||
|
||
- name: Upload Code Coverage | ||
uses: codecov/[email protected] | ||
uses: codecov/codecov-action@d9f34f8cd5cb3b3eb79b3e4b5dae3a16df499a70 # ratchet:codecov/codecov-action@v3.1.1 | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
files: ./coverage.out | ||
|
@@ -70,25 +69,24 @@ jobs: | |
|
||
steps: | ||
- name: Checkout | ||
uses: actions/[email protected] | ||
uses: actions/checkout@755da8c3cf115ac066823e79a1e1788f8940201b # ratchet:actions/checkout@v3.2.0 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Set up Go | ||
uses: actions/[email protected] | ||
uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # ratchet:actions/setup-go@v3.5.0 | ||
with: | ||
go-version-file: ./go.mod | ||
check-latest: true | ||
cache: true | ||
|
||
- name: Install cosign | ||
uses: sigstore/[email protected] | ||
uses: sigstore/cosign-installer@9becc617647dfa20ae7b1151972e9b3a2c338a2b # ratchet:sigstore/cosign-installer@v2.8.1 | ||
with: | ||
cosign-release: 'v1.13.1' | ||
|
||
- name: Install Syft | ||
uses: anchore/sbom-action/[email protected] | ||
|
||
uses: anchore/sbom-action/download-syft@06e109483e6aa305a2b2395eabae554e51530e1d # ratchet:anchore/sbom-action/[email protected] | ||
- name: Login to Container registries | ||
if: startsWith(github.ref, 'refs/tags/') | ||
run: | | ||
|
@@ -113,7 +111,7 @@ jobs: | |
echo '${{ secrets.COSIGN_PRIVATE_KEY }}' > cosign.key | ||
- name: Release ${{ (!startsWith(github.ref, 'refs/tags/') && 'snapshot') || '' }} | ||
uses: goreleaser/goreleaser-action@v4 | ||
uses: goreleaser/goreleaser-action@8f67e590f2d095516493f017008adc464e63adb1 # ratchet:goreleaser/goreleaser-action@v4 | ||
with: | ||
version: latest | ||
args: release --rm-dist ${{ (!startsWith(github.ref, 'refs/tags/') && '--snapshot') || '' }} ${{ ((startsWith(github.ref, 'refs/tags/') && endsWith(github.ref, '-draft')) && '-f .goreleaser.draft.yml') || '' }} | ||
|
@@ -156,13 +154,12 @@ jobs: | |
|
||
steps: | ||
- name: Install cosign | ||
uses: sigstore/[email protected] | ||
uses: sigstore/cosign-installer@9becc617647dfa20ae7b1151972e9b3a2c338a2b # ratchet:sigstore/cosign-installer@v2.8.1 | ||
with: | ||
cosign-release: 'v1.13.1' | ||
|
||
- name: Install Syft | ||
uses: anchore/sbom-action/[email protected] | ||
|
||
uses: anchore/sbom-action/download-syft@06e109483e6aa305a2b2395eabae554e51530e1d # ratchet:anchore/sbom-action/[email protected] | ||
- name: Login to Container registries | ||
run: | | ||
echo "${{ secrets.DOCKER_PASSWORD }}" | docker login -u philipssoftware --password-stdin | ||
|
@@ -197,7 +194,7 @@ jobs: | |
|
||
steps: | ||
- name: Generate provenance for Release | ||
uses: philips-labs/[email protected] | ||
uses: philips-labs/slsa-provenance-action@752766b8a3b1ebd09d599e163eeec8fa39e677aa # ratchet:philips-labs/slsa-provenance-action@v0.8.0 | ||
with: | ||
command: generate | ||
subcommand: github-release | ||
|
@@ -206,7 +203,7 @@ jobs: | |
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" | ||
|
||
- name: Install cosign | ||
uses: sigstore/[email protected] | ||
uses: sigstore/cosign-installer@9becc617647dfa20ae7b1151972e9b3a2c338a2b # ratchet:sigstore/cosign-installer@v2.8.1 | ||
with: | ||
cosign-release: 'v1.13.1' | ||
|
||
|
@@ -242,12 +239,12 @@ jobs: | |
|
||
steps: | ||
- name: Install cosign | ||
uses: sigstore/[email protected] | ||
uses: sigstore/cosign-installer@9becc617647dfa20ae7b1151972e9b3a2c338a2b # ratchet:sigstore/cosign-installer@v2.8.1 | ||
with: | ||
cosign-release: 'v1.13.1' | ||
|
||
- name: Generate provenance for ${{ matrix.repo }} | ||
uses: philips-labs/[email protected] | ||
uses: philips-labs/slsa-provenance-action@752766b8a3b1ebd09d599e163eeec8fa39e677aa # ratchet:philips-labs/slsa-provenance-action@v0.8.0 | ||
with: | ||
command: generate | ||
subcommand: container | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,7 +33,7 @@ jobs: | |
echo ", ${{github.event.inputs.car_input}}" >> cars.txt | ||
- name: Upload artifact | ||
uses: actions/[email protected] | ||
uses: actions/upload-artifact@83fd05a356d7e2593de66fc9913b3002723633cb # ratchet:actions/upload-artifact@v3.1.1 | ||
with: | ||
path: '*.txt' | ||
|
||
|
@@ -44,11 +44,9 @@ jobs: | |
steps: | ||
# checkout only required to run local action (defined in this repo) | ||
- name: Checkout | ||
uses: actions/[email protected] | ||
|
||
uses: actions/checkout@755da8c3cf115ac066823e79a1e1788f8940201b # ratchet:actions/[email protected] | ||
- name: Download build artifact | ||
uses: actions/[email protected] | ||
|
||
uses: actions/download-artifact@9782bd6a9848b53b110e712e20e42d89988822b7 # ratchet:actions/[email protected] | ||
- name: Generate some extra materials (this usually happens as part of the build process) | ||
run: | | ||
echo '[{"uri": "pkg:deb/debian/[email protected]?arch=amd64", "digest": {"sha256": "e1731ae217fcbc64d4c00d707dcead45c828c5f762bcf8cc56d87de511e096fa"}}]' > extra-materials.json | ||
|
@@ -61,6 +59,6 @@ jobs: | |
extra_materials: extra-materials.json | ||
|
||
- name: Upload provenance | ||
uses: actions/[email protected] | ||
uses: actions/upload-artifact@83fd05a356d7e2593de66fc9913b3002723633cb # ratchet:actions/upload-artifact@v3.1.1 | ||
with: | ||
path: provenance.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,7 +13,7 @@ jobs: | |
run: echo "onion, tomato, jalapeno, cilantro, lime, salt" > salsa.txt | ||
|
||
- name: Upload artifact | ||
uses: actions/[email protected] | ||
uses: actions/upload-artifact@83fd05a356d7e2593de66fc9913b3002723633cb # ratchet:actions/upload-artifact@v3.1.1 | ||
with: | ||
path: salsa.txt | ||
|
||
|
@@ -23,16 +23,15 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- name: Download build artifact | ||
uses: actions/[email protected] | ||
|
||
uses: actions/download-artifact@9782bd6a9848b53b110e712e20e42d89988822b7 # ratchet:actions/[email protected] | ||
- name: Generate provenance | ||
uses: philips-labs/[email protected] | ||
uses: philips-labs/slsa-provenance-action@752766b8a3b1ebd09d599e163eeec8fa39e677aa # ratchet:philips-labs/slsa-provenance-action@v0.8.0 | ||
with: | ||
command: generate | ||
subcommand: files | ||
arguments: --artifact-path artifact/ --output-path provenance.json | ||
|
||
- name: Upload provenance | ||
uses: actions/[email protected] | ||
uses: actions/upload-artifact@83fd05a356d7e2593de66fc9913b3002723633cb # ratchet:actions/upload-artifact@v3.1.1 | ||
with: | ||
path: provenance.json |