From 86db3bc6ddce76ec25df88bddf8922f0cd705557 Mon Sep 17 00:00:00 2001 From: Braxton Excell Date: Tue, 22 Aug 2023 17:25:21 -0500 Subject: [PATCH] update auto-assign, cron job, and file name --- ...jira-sync.yml => scan_security-hub-jira-integration.yml} | 2 +- .../{snyk-test.yml => scan_snyk-jira-integration.yml} | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) rename .github/workflows/{schedule-jira-sync.yml => scan_security-hub-jira-integration.yml} (95%) rename .github/workflows/{snyk-test.yml => scan_snyk-jira-integration.yml} (90%) diff --git a/.github/workflows/schedule-jira-sync.yml b/.github/workflows/scan_security-hub-jira-integration.yml similarity index 95% rename from .github/workflows/schedule-jira-sync.yml rename to .github/workflows/scan_security-hub-jira-integration.yml index ebb545dde..b4b001ed0 100644 --- a/.github/workflows/schedule-jira-sync.yml +++ b/.github/workflows/scan_security-hub-jira-integration.yml @@ -3,7 +3,7 @@ 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 + - cron: "0 6 * * *" # daily at 0600 UTC permissions: id-token: write diff --git a/.github/workflows/snyk-test.yml b/.github/workflows/scan_snyk-jira-integration.yml similarity index 90% rename from .github/workflows/snyk-test.yml rename to .github/workflows/scan_snyk-jira-integration.yml index 8fe08e375..eeb53ac11 100644 --- a/.github/workflows/snyk-test.yml +++ b/.github/workflows/scan_snyk-jira-integration.yml @@ -4,7 +4,7 @@ on: pull_request: branches: [main] schedule: - - cron: "0 4 * * *" # run every day at midnight + - cron: "0 6 * * *" # daily at 0600 UTC permissions: id-token: write @@ -49,9 +49,9 @@ jobs: jira-host: "qmacbis.atlassian.net" jira-project-key: "MDCT" jira-issue-type: "Task" - jira-custom-field-key-value: '{ "customfield_10007" : "MDCT-2280", "customfield_14154" : [{"id": "16958", "value": "CARTS"}] }' + jira-custom-field-key-value: '{ "customfield_10007" : "MDCT-2280", "customfield_14154" : [{"id": "16955", "value": "CARTS"}] }' jira-labels: "CARTS,snyk" jira-title-prefix: "[CARTS] - Snyk :" - assign-jira-ticket-to: "620e936fa715c6006914c7d2" # pragma: allowlist secret (Jira user ID for Rehman) + assign-jira-ticket-to: "6268ac54d364ae006809a489" # pragma: allowlist secret (Jira user ID for Rehman) scan-output-path: "snyk_output.txt" scan-type: "snyk"