Skip to content

Commit 1d11cb7

Browse files
committed
Use direct CLI approach: clone scanner and run scan.sh
Cross-org composite actions also blocked, checkout + run directly. Co-authored-by: Isaac
1 parent 0e9384b commit 1d11cb7

File tree

1 file changed

+21
-4
lines changed

1 file changed

+21
-4
lines changed

.github/workflows/security-scan.yml

Lines changed: 21 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,25 @@ jobs:
2828
- name: Build JAR
2929
run: mvn --errors package -DskipTests -pl databricks-sdk-java
3030

31-
- name: Security scan
32-
uses: databricks-eng/gh-action-scan@1c260de6986f77d8c505975ce434830a7afdb95f # main
31+
- name: Checkout scanner
32+
uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 # v2.7.0
33+
with:
34+
repository: databricks-eng/gh-action-scan
35+
path: .scan
36+
token: ${{ secrets.GITHUB_TOKEN }}
37+
38+
- name: Run security scan
39+
run: |
40+
chmod +x .scan/scan.sh
41+
.scan/scan.sh \
42+
--artifact-path databricks-sdk-java/target/ \
43+
--artifact-name databricks-sdk-java \
44+
--output-dir ./scan-results
45+
46+
- name: Upload scan results
47+
if: ${{ !cancelled() }}
48+
uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0
3349
with:
34-
artifact-path: databricks-sdk-java/target/
35-
artifact-name: databricks-sdk-java
50+
name: security-scan-results
51+
path: ./scan-results/
52+
if-no-files-found: warn

0 commit comments

Comments
 (0)