SCC provides helpful metrics line complexity, effort and cost for a codebase. This GitHub Action runs SCC to generate a code metrics report and publishes the result as a GitHub Check.
Note: The check can be run on commit, etc - but the output is based on the state of the entire codebase.
name: SCC Code Report
on:
push:
branches:
- main
permissions: # Set permissions at workflow level - to ensure the check can be written
contents: read
checks: write
jobs:
scc_count:
runs-on: ubuntu-latest
steps:
- name: Run SCC Code Report
uses: hyperlaunch/scc-check-action@v1
with:
github-token: ${{ secrets.GITHUB_TOKEN }}