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 08d03a4 commit bf95ffe
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,3 +77,30 @@ 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 bf95ffe

Please sign in to comment.