Skip to content

Commit 5f495e9

Browse files
authored
gh-action: detekt output as artifact (#2407)
1 parent b366f8d commit 5f495e9

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

.github/workflows/sa.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,8 @@ jobs:
5454
# Only the major.minor part is required here, not the full version (e.g., "2.1.20").
5555
# github.com/celzero/rethink-app/blob/main/build.gradle#L4
5656
KOTLIN_VER: "2.1"
57-
- name: 📤 Upload
57+
58+
- name: 📡 Upload to code-scanning
5859
if: always()
5960
# TODO: docs.github.com/en/code-security/code-scanning/creating-an-advanced-setup-for-code-scanning/configuring-advanced-setup-for-code-scanning
6061
# docs.github.com/en/code-security/code-scanning/integrating-with-code-scanning/sarif-support-for-code-scanning
@@ -67,3 +68,12 @@ jobs:
6768
# Optional category for the results
6869
# Used to differentiate multiple results for one commit
6970
# category: rethink-app
71+
72+
- name: 🗃️ Artifact
73+
uses: actions/upload-artifact@v4
74+
with:
75+
name: "rethink-app-detekt-${{ github.run_id }}.sarif"
76+
path: "rethink-app-detekt-${{ github.run_id }}.sarif"
77+
retention-days: 52
78+
if-no-files-found: error # error, warn (default), ignore
79+
compression-level: 9 # 0-9; 9 is max

0 commit comments

Comments
 (0)