From d0631964a17189676b4d886516ea0ed216658a20 Mon Sep 17 00:00:00 2001 From: Kunal Nagar <2741371+kunalnagar@users.noreply.github.com> Date: Tue, 20 Aug 2024 11:16:19 -0400 Subject: [PATCH] Update --- .github/workflows/ci.yml | 8 ++++---- src/main.ts | 6 ++++-- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 37bc97e..75a2f36 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -39,10 +39,10 @@ jobs: # zenduty_api_key: ${{ secrets.ZENDUTY_API_KEY }} # zenduty_service_id: ${{ secrets.ZENDUTY_SERVICE_ID }} # zenduty_escalation_policy_id: ${{ secrets.ZENDUTY_ESCALATION_POLICY_ID }} - # email_from: ${{ secrets.EMAIL_FROM }} - # email_list: ${{ secrets.EMAIL_BCC_LIST }} - # email_transport_smtp_user: ${{ secrets.EMAIL_TRANSPORT_SMTP_USER }} - # email_transport_smtp_password: ${{ secrets.EMAIL_TRANSPORT_SMTP_PASSWORD }} + email_from: ${{ secrets.EMAIL_FROM }} + email_list: ${{ secrets.EMAIL_BCC_LIST }} + email_transport_smtp_user: ${{ secrets.EMAIL_TRANSPORT_SMTP_USER }} + email_transport_smtp_password: ${{ secrets.EMAIL_TRANSPORT_SMTP_PASSWORD }} env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Release (dry-run) diff --git a/src/main.ts b/src/main.ts index f5143cd..228d3dd 100644 --- a/src/main.ts +++ b/src/main.ts @@ -1,5 +1,5 @@ import { getInput, setFailed } from '@actions/core' -import { context } from '@actions/github' +// import { context } from '@actions/github' import { sendAlertsToMicrosoftTeams, @@ -52,7 +52,9 @@ async function run(): Promise { count, ) } else { - const { owner, repo } = context.repo + // const { owner, repo } = context.repo + const owner = 'kunalnagar' + const repo = 'cve-base' alerts = await fetchRepositoryAlerts( token, repo,