From 49f2725a66b66b768fcae1712bede3b404d64100 Mon Sep 17 00:00:00 2001 From: Johanna Ahlskog Date: Thu, 14 Sep 2023 10:07:56 +0200 Subject: [PATCH] Changed action input parameter --- .github/workflows/pipeline.yml | 2 +- action.yml | 2 +- src/Pentest/PentestService.ts | 2 +- src/branchprotection/BranchProtectionService.ts | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/pipeline.yml b/.github/workflows/pipeline.yml index cb2bf5bf..e4bc8c8c 100644 --- a/.github/workflows/pipeline.yml +++ b/.github/workflows/pipeline.yml @@ -20,5 +20,5 @@ jobs: - name: 'Run Compliance State' uses: ./ with: - subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }} + subscriptionId: ${{ secrets.AZURE_SUBSCRIPTION_ID }} \ No newline at end of file diff --git a/action.yml b/action.yml index 235749ed..f8b09dca 100644 --- a/action.yml +++ b/action.yml @@ -3,7 +3,7 @@ description: 'Cydig compliance action' author: 'Jonathan' inputs: - repo-token: + subscriptionId: description: 'SubscriptionId to use for the connections in the custom task.' required: true default: 'Not working' diff --git a/src/Pentest/PentestService.ts b/src/Pentest/PentestService.ts index 5971001f..ffa6db95 100644 --- a/src/Pentest/PentestService.ts +++ b/src/Pentest/PentestService.ts @@ -13,7 +13,7 @@ export class PentestService { console.log('Pentest Date is set', pentestDate.date); - // const token = core.getInput('repo-token'); + // const token = core.getInput('subscriptionId'); // console.log('Got the token'); // const octokit = github.getOctokit(token); diff --git a/src/branchprotection/BranchProtectionService.ts b/src/branchprotection/BranchProtectionService.ts index dab26733..71f1d6e0 100644 --- a/src/branchprotection/BranchProtectionService.ts +++ b/src/branchprotection/BranchProtectionService.ts @@ -3,7 +3,7 @@ import * as github from '@actions/github'; export class BranchProtectionService { public static async getStateOfBranchProtection(): Promise { console.log('Custom task is working!'); - const token = core.getInput('repo-token'); + const token = core.getInput('subscriptionId'); console.log('Got the token'); const octokit = github.getOctokit(token);