Skip to content

Commit ad2722b

Browse files
committed
Updating workflows
1 parent 3ea689d commit ad2722b

6 files changed

Lines changed: 17 additions & 33 deletions

File tree

.github/workflows/depot.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,10 @@ jobs:
5252
- name: setup depot
5353
uses: depot/setup-action@eb2efd6287c794d456be5e1a7963fa8772c39ce5 # v1.5.0
5454

55-
- name: docker login
56-
run: docker login --username kickable --password "${{ secrets.DOCKER_HUB }}"
57-
58-
# Package the cross-built binary into the scratch app image (validation).
59-
- run: depot build --platform linux/amd64 -f docker/Dockerfile -t kickable/kickable -q --load .
55+
# Validate that the cross-built binary packages into the scratch app image.
56+
# No --load/-t: depot's ephemeral registry ref uses the project ID, which
57+
# contains uppercase characters that Docker rejects as a repository name.
58+
- name: build
59+
run: depot build --platform linux/amd64 -f docker/Dockerfile .
6060
env:
6161
DEPOT_TOKEN: ${{ secrets.DEPOT_TOKEN }}

.github/workflows/devskim.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
3939

4040
- name: run devskim scanner
41-
uses: microsoft/DevSkim-Action@b41921d947434b27f90b8949f8bfbe056e706bf6 # v1.0.11
41+
uses: microsoft/DevSkim-Action@4b5047945a44163b94642a1cecc0d93a3f428cc6 # v1.0.16
4242

4343
- name: upload
4444
uses: github/codeql-action/upload-sarif@3ab4101902695724f9365a384f86c1074d94e18c # v3.24.7

.github/workflows/earthly.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,11 @@ jobs:
5151
id: hash
5252
shell: bash
5353
run: |
54-
echo ::set-output name=cargo_lock::${{ hashFiles('Cargo.lock') }}
55-
echo ::set-output name=workflow_yml::${{ hashFiles('.github/workflows/earthly.yml') }}
54+
echo "cargo_lock=${{ hashFiles('Cargo.lock') }}" >> "$GITHUB_OUTPUT"
55+
echo "workflow_yml=${{ hashFiles('.github/workflows/earthly.yml') }}" >> "$GITHUB_OUTPUT"
5656
5757
- name: cache earthly
58-
uses: actions/cache@13aacd865c20de90d75de3b17ebe84f7a17d57d2 # v4.0.0
58+
uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5
5959
continue-on-error: false
6060
with:
6161
path: /var/lib/docker/volumes/earthly-cache/

.github/workflows/main.yml

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,6 @@ jobs:
151151
continue-on-error: true
152152
permissions:
153153
contents: read
154-
security-events: write
155154
issues: write
156155
steps:
157156
- name: Harden Runner
@@ -166,15 +165,3 @@ jobs:
166165
uses: rustsec/audit-check@69366f33c96575abad1ee0dba8212993eecbe998 # v2.0.0
167166
with:
168167
token: ${{ secrets.GITHUB_TOKEN }}
169-
170-
- name: OSSF scorecard action
171-
uses: ossf/scorecard-action@0864cf19026789058feabb7e87baa5f140aac736 # v2.3.1
172-
with:
173-
results_file: results.sarif
174-
results_format: sarif
175-
publish_results: true
176-
177-
- name: upload to code-scanning
178-
uses: github/codeql-action/upload-sarif@3ab4101902695724f9365a384f86c1074d94e18c # v3.24.7
179-
with:
180-
sarif_file: results.sarif

.github/workflows/scorecard.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,10 @@ jobs:
5858
with:
5959
results_file: results.sarif
6060
results_format: sarif
61-
# (Optional) "write" PAT token. Uncomment the `repo_token` line below if:
62-
# - you want to enable the Branch-Protection check on a *public* repository, or
63-
# - you are installing Scorecard on a *private* repository
64-
# To create the PAT, follow the steps in https://github.com/ossf/scorecard-action#authentication-with-pat.
65-
repo_token: ${{ secrets.SCORECARD_TOKEN }}
61+
# On a public repo, the default GITHUB_TOKEN is sufficient for all
62+
# checks except Branch-Protection. To re-enable that check, set a PAT
63+
# secret named SCORECARD_TOKEN and add `repo_token: ${{ secrets.SCORECARD_TOKEN }}`
64+
# here — see https://github.com/ossf/scorecard-action#authentication-with-pat.
6665

6766
# Public repositories:
6867
# - Publish results to OpenSSF REST API for easy access by consumers

.github/workflows/snyk-container.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -68,14 +68,12 @@ jobs:
6868
- name: cross build static binary
6969
run: cross build --release --bin kickable --all-features --locked --target x86_64-unknown-linux-musl
7070

71-
- name: setup depot
72-
uses: depot/setup-action@eb2efd6287c794d456be5e1a7963fa8772c39ce5 # v1.5.0
73-
7471
# Package the cross-built binary into the scratch app image for scanning.
72+
# Built with plain docker (the runner is amd64) so the image is available
73+
# locally for Snyk; depot's --load tags through its project-ID-based
74+
# registry, which Docker rejects (uppercase repository name).
7575
- name: build docker
76-
run: depot build --load --platform linux/amd64 -f docker/Dockerfile -t container .
77-
env:
78-
DEPOT_TOKEN: ${{ secrets.DEPOT_TOKEN }}
76+
run: docker build --platform linux/amd64 -f docker/Dockerfile -t container .
7977

8078
- name: snyk - container
8179
continue-on-error: true

0 commit comments

Comments
 (0)