https://github.com/felickz/codeql-report
https://github.com/felickz/codeql-report
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/felickz/codeql-report
- Owner: felickz
- License: mit
- Created: 2024-02-26T16:11:24.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-03-02T02:23:16.000Z (about 1 year ago)
- Last Synced: 2025-02-24T03:15:14.115Z (3 months ago)
- Language: PowerShell
- Size: 16.6 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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## Sample Output
- [CodeQLWorkflowStatus.csv ](https://github.com/felickz/codeql-report/blob/main/CodeQLWorkflowStatus.csv)## 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:
```yaml
name: CodeQL Reporton:
push:
paths:
- '.github/workflows/codeql-report.yml'
workflow_dispatch:
#every 6 hours
schedule:
- cron: '0 */6 * * *'jobs:
run-report:
runs-on: ubuntu-lateststeps:
- name: Use felickz/codeql-report action
uses: felickz/codeql-report@main
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 from the `main` branch directly. The report is run every 6 hours via cron schedule.
The github-token input is required for the felickz/codeql-report action. It uses the GITHUB_TOKEN secret, which would need to have `metadata:read` and `actions:read` permissions for your organization for any private repos.
The `upload-artfact` action is used to create the CSV attached to the action workflow summary.
## Inputs
### github-token
Required The GitHub token to authenticate and pull CodeQL Action workflow status with. Needs to have `metadata:read` and `actions:read` permissions for your organization's private repos.
### organization
Optional The GitHub Organization. Defaults to the current Organization.