diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 16a02c02..ee2be155 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -24,8 +24,8 @@ jobs: run: npm run build - name: 'Run Compliance State' uses: ./ - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: cydigConfigPath: ${{ github.workspace }}/src/cydigconfig.json github-token: ${{ secrets.MY_GITHUB_PAT}} + # env: + # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/src/branchprotection/BranchProtectionService.ts b/src/branchprotection/BranchProtectionService.ts index 45ebadca..53ec19dc 100644 --- a/src/branchprotection/BranchProtectionService.ts +++ b/src/branchprotection/BranchProtectionService.ts @@ -39,6 +39,9 @@ export class BranchProtectionService { branch: 'main', }) .then((response: any) => { + console.log('only response', response); + console.log('Data without json()', response.data); + console.log('only response with json()', response.json()); const data: any = response.json(); console.log( 'Branch protection is enabled, and the numbers of reviewers are:',