Skip to content

Commit

Permalink
Add SLOC count to scans
Browse files Browse the repository at this point in the history
  • Loading branch information
jordanpadams authored Dec 16, 2024
1 parent 92b8295 commit 2abd78d
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,3 +77,31 @@ jobs:
with:
name: codeql-artifacts
path: ${{ env.RESULTS_DIR }}


sloc-count:
name: SLOC Count
runs-on: ubuntu-latest
if: github.actor != 'pdsen-ci'
steps:
-
name: 💳 Checkout
uses: actions/checkout@v4
with:
lfs: true
fetch-depth: 0
token: ${{secrets.ADMIN_GITHUB_TOKEN}}

-
name: Count Lines of Code (cloc)
uses: djdefi/cloc-action@6
with:
options: --report-file=cloc.md


-
name: Upload SLOC
uses: actions/upload-artifact@v4
with:
name: sloc-count
path: ${{ github.workspace }}/cloc.md

0 comments on commit 2abd78d

Please sign in to comment.