Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions .github/workflows/on-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,15 @@

- name: 🛡️ Harden Runner
if: github.repository_owner == 'eclipse-score'
uses: step-security/harden-runner@v2.18.0

Check failure on line 30 in .github/workflows/on-pr.yml

View workflow job for this annotation

GitHub Actions / Run pinact

pinact error

uses: step-security/harden-runner@6c3c2f2c1c457b00c10c4848d6f5491db3b629df # v2.18.0
with:
egress-policy: audit

- name: Checkout repository
uses: actions/checkout@v6

Check failure on line 35 in .github/workflows/on-pr.yml

View workflow job for this annotation

GitHub Actions / Run pinact

pinact error

uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3

- name: Setup Bazel
uses: bazel-contrib/setup-bazel@0.19.0

Check failure on line 38 in .github/workflows/on-pr.yml

View workflow job for this annotation

GitHub Actions / Run pinact

pinact error

uses: bazel-contrib/setup-bazel@c5acdfb288317d0b5c0bbd7a396a3dc868bb0f86 # 0.19.0
with:
disk-cache: true
repository-cache: true
Expand All @@ -46,3 +46,30 @@

- name: Run pre-commit checks
run: pre-commit run -a

pinact:
name: Run pinact
runs-on: ubuntu-latest

permissions:
contents: read
security-events: write

steps:
- uses: actions/checkout@v6

Check failure on line 59 in .github/workflows/on-pr.yml

View workflow job for this annotation

GitHub Actions / Run pinact

pinact error

- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3

Check failure

Code scanning / pinact

GitHub Action is not pinned to a commit SHA Error

Action should be pinned: - uses: actions/checkout@v6 -> - uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3

- name: Install pinact
run: go install github.com/suzuki-shunsuke/pinact/v4/cmd/pinact@v4.1.0

- name: Run pinact
id: pinact
continue-on-error: true
run: |
"$(go env GOPATH)/bin/pinact" run --format sarif > sarif.json

- name: Upload SARIF
if: ${{ !cancelled() && hashFiles('sarif.json') != '' }}
uses: github/codeql-action/upload-sarif@5d4e8d1aca955e8d8589aabd499c5cae939e33c7 # v4.31.9
with:
sarif_file: sarif.json
category: pinact
Loading