Skip to content

willowtreeapps/codeql-report-fork

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

felickz/codeql-report GitHub Action

This action allows you to generate a CodeQL Actions workflow success/failure report. It walks all repos looking for Actions runs against non pr branches and reports on the

  • Conclusion (success/failure/null)
  • Workflow_Url
  • Is_Default (if CodeQL is enabled via Code Scanning default setup)
  • Org
  • Repo
  • Workflow_Path
image

Usage

To use the felickz/codeql-report action, you need to set it up in a workflow file (.github/workflows/codeql-report.yml).

Here's a basic example:

name: CodeQL Report

on:
  push:
    paths:
      - '.github/workflows/codeql-report.yml'
  workflow_dispatch:
  #every 6 hours
  schedule:
    - cron: '0 */6 * * *'

jobs:
  run-report:
    runs-on: ubuntu-latest

    steps:
    - name: Use felickz/codeql-report action
      uses: felickz/codeql-report@v1
      with:
        token: ${{ secrets.GITHUB_TOKEN }}
    - name: Upload CodeQL Report CSV as Artifact
      uses: actions/upload-artifact@v4
      with:
        name: "CodeQLReport-${{ github.run_id }}"
        path: ./*.csv

In this example, the felickz/codeql-report action is used

The github-token input is required for the felickz/codeql-report action. It uses the GITHUB_TOKEN secret, which is automatically created by GitHub for your repository.

Inputs

github-token

Required The GitHub token to authenticate and pull CodeQL Action workflow status with.

organization

Optional The GitHub Organization. Defaults to the current Organization.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PowerShell 100.0%