Skip to content

Commit ce6a5a4

Browse files
committed
use abs path for opengrep
1 parent f1ede02 commit ce6a5a4

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

.github/workflows/opengrep.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,11 @@ jobs:
2020
- name: Install OpenGrep
2121
run: |
2222
curl -fsSL https://raw.githubusercontent.com/opengrep/opengrep/main/install.sh | bash
23-
export PATH='/home/runner/.opengrep/cli/latest':$PATH
24-
opengrep --version
23+
/home/runner/.opengrep/cli/latest/opengrep --version
2524
2625
- name: Scan with OpenGrep
2726
run: |
28-
opengrep --config=r/all --sarif --verbose . > opengrep-results.sarif
27+
/home/runner/.opengrep/cli/latest/opengrep --config=r/all --sarif --verbose . > opengrep-results.sarif
2928
3029
- name: Upload OpenGrep scan results to GitHub Security tab
3130
uses: github/codeql-action/upload-sarif@v3

0 commit comments

Comments
 (0)