Skip to content

Updating SecHub for ENT Jira #65

Updating SecHub for ENT Jira

Updating SecHub for ENT Jira #65

name: Sync Security Hub findings and Jira issues
on:
push:
branches: [entjira]
workflow_dispatch: # for testing and manual runs
schedule:
- cron: "0 6 * * *" # daily at 0600 UTC
permissions:
id-token: write
jobs:
sync:
name: Run sync
runs-on: ubuntu-20.04
if: github.event_name == 'push'
steps:
- name: Check out repo
uses: actions/checkout@v3
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v4
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_TEMP_USER_TOKEN }}
jira-username: ${{ secrets.JIRA_TEMP_USERNAME }}
jira-host: jiraent.cms.gov
jira-project-key: CMDCT
#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
assign-jira-ticket-to: ${{ secrets.ACCOUNT_ID_REHMAN }}
is_jira_enterprise: true