Skip to content

Commit 8c5401a

Browse files
authored
ci: update security jobs (#243)
1 parent 1ebd3b1 commit 8c5401a

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

.github/workflows/security.yml

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# This workflow will run some security checks against our project
1+
# This workflow will run security checks against our project
22

33
name: Security
44

@@ -11,28 +11,30 @@ on:
1111
jobs:
1212
osv-scanner:
1313
runs-on: ubuntu-latest
14+
if: "!startsWith(github.event.head_commit.message, 'bump:')"
1415
container:
15-
image: ghcr.io/google/osv-scanner:v1.9.2
16+
image: ghcr.io/google/osv-scanner:v2.1.0@sha256:9a1ba57d2a1506c9e9d0dfbeaf46346507e829745b70d47d77e12c38e66de8d7
1617
steps:
17-
- uses: actions/checkout@v4
18+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
1819
- name: Run OSV Scanner
1920
run: |
20-
/osv-scanner --skip-git --format table -r .
21+
/osv-scanner --format table -r .
2122
semgrep:
2223
runs-on: ubuntu-latest
24+
if: "!startsWith(github.event.head_commit.message, 'bump:')"
2325
container:
24-
image: returntocorp/semgrep:latest
26+
image: returntocorp/semgrep:1.128.1@sha256:144d315f7354c2b2c53021a76165a500f67252c47464be75e951b67050f54a9e
2527
steps:
26-
- uses: actions/checkout@v4
28+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2729
- name: Run Semgrep
2830
run: |
2931
semgrep scan --config auto
3032
twyn:
3133
runs-on: ubuntu-latest
3234
steps:
33-
- uses: actions/checkout@v4
35+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
3436
- name: Set up Python
35-
uses: actions/setup-python@v4
37+
uses: actions/setup-python@7f4fc3e22c37d6ff65e88745f38bd3157c663f7c #v4.9.1
3638
with:
3739
python-version: "3.13"
3840
- name: Install dependencies

.osv-scanner.toml

Whitespace-only changes.

0 commit comments

Comments
 (0)