Skip to content

Commit 013cbe3

Browse files
authored
Add SLOC count to scans
1 parent ddee1c9 commit 013cbe3

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.github/workflows/codeql-analysis.yml

+27
Original file line numberDiff line numberDiff line change
@@ -77,3 +77,30 @@ jobs:
7777
with:
7878
name: codeql-artifacts
7979
path: ${{ env.RESULTS_DIR }}
80+
81+
sloc-count:
82+
name: SLOC Count
83+
runs-on: ubuntu-latest
84+
if: github.actor != 'pdsen-ci'
85+
steps:
86+
-
87+
name: 💳 Checkout
88+
uses: actions/checkout@v4
89+
with:
90+
lfs: true
91+
fetch-depth: 0
92+
token: ${{secrets.ADMIN_GITHUB_TOKEN}}
93+
94+
-
95+
name: Count Lines of Code (cloc)
96+
uses: djdefi/cloc-action@6
97+
with:
98+
options: --report-file=cloc.md
99+
100+
101+
-
102+
name: Upload SLOC
103+
uses: actions/upload-artifact@v4
104+
with:
105+
name: sloc-count
106+
path: ${{ github.workspace }}/cloc.md

0 commit comments

Comments
 (0)