Skip to content

Commit

Permalink
Changed action input parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
Johanna Ahlskog committed Sep 14, 2023
1 parent 2a6b83e commit 49f2725
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@ jobs:
- name: 'Run Compliance State'
uses: ./
with:
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
subscriptionId: ${{ secrets.AZURE_SUBSCRIPTION_ID }}

2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
2 changes: 1 addition & 1 deletion src/Pentest/PentestService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion src/branchprotection/BranchProtectionService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import * as github from '@actions/github';
export class BranchProtectionService {
public static async getStateOfBranchProtection(): Promise<void> {
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);
Expand Down

0 comments on commit 49f2725

Please sign in to comment.