Sync Security Hub findings and Jira issues #107
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Sync Security Hub findings and Jira issues | |
on: | |
workflow_dispatch: # for testing and manual runs | |
schedule: | |
- cron: "25 1 * * *" # daily at 6:25 am EST | |
permissions: | |
id-token: write | |
jobs: | |
sync: | |
name: Run sync | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Check out repo | |
uses: actions/checkout@v3 | |
- name: Configure AWS credentials | |
uses: aws-actions/configure-aws-credentials@v2 | |
with: | |
aws-region: ${{ secrets.AWS_DEFAULT_REGION }} | |
role-to-assume: ${{ secrets.PRODUCTION_SYNC_OIDC_ROLE }} | |
- name: Sync Security Hub and Jira | |
uses: Enterprise-CMCS/[email protected] | |
with: | |
jira-token: ${{ secrets.JIRA_SERVICE_USER_TOKEN }} | |
jira-username: ${{ secrets.JIRA_SERVICE_USERNAME }} | |
jira-host: qmacbis.atlassian.net | |
jira-project-key: MDCT | |
jira-epic-key: MDCT-2280 | |
jira-ignore-statuses: Done, Closed, Canceled | |
jira-custom-fields: '{ "customfield_14154" : [{"id": "16955", "value": "CARTS"}] }' | |
aws-severities: CRITICAL, HIGH, MEDIUM |