https://github.com/advanced-security/ghas-mttr
GitHub Advanced Security Mean Time to Remediate (MTTR)
https://github.com/advanced-security/ghas-mttr
Last synced: about 1 month ago
JSON representation
GitHub Advanced Security Mean Time to Remediate (MTTR)
- Host: GitHub
- URL: https://github.com/advanced-security/ghas-mttr
- Owner: advanced-security
- License: mit
- Created: 2021-09-02T12:31:53.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-04-12T08:55:55.000Z (about 1 year ago)
- Last Synced: 2024-04-14T04:40:18.183Z (about 1 year ago)
- Language: Python
- Size: 60.5 KB
- Stars: 1
- Watchers: 3
- Forks: 2
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# ghas-mttr
GitHub Advanced Security Mean Time to Remediate (MTTR)
## Usage
**`.github/workflows/ghas-mttr.yml`**
```yaml
name: MTTR Report Actionon:
schedule:
# Weekly at 9:00am on Thursday
- cron: '0 9 * * 4'
# Manually run the action
workflow_dispatch:jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
# [optional]
# This Action step with use a GitHub App versus a PAT Token (better for
# security and access control) - see the GitHub Actions documentation for
# more details.
- name: Get Token
id: get_workflow_token
uses: peter-murray/workflow-application-token-action@v1
with:
application_id: ${{ secrets.APPLICATION_ID }}
application_private_key: ${{ secrets.APPLICATION_PRIVATE_KEY }}- uses: advanced-security/ghas-mttr@main
with:
exporter: 'issue_summary'
token: ${{ steps.get_workflow_token.outputs.token }}
```