diff --git a/.github/workflows/add-checks.yml b/.github/workflows/add-checks.yml index 6f7fd739f79..059778deadb 100644 --- a/.github/workflows/add-checks.yml +++ b/.github/workflows/add-checks.yml @@ -12,12 +12,15 @@ jobs: steps: - name: Checkout code uses: actions/checkout@v2 + - name: Add run: | gh api \ -H "Accept: application/vnd.github+json" \ -H "X-GitHub-Api-Version: 2022-11-28" \ /repos/Rakshithb1/commons/branches/develop/protection + env: + GH_TOKEN: ${{ github.token }} - name: Add branch protection rule run: | TOKEN=$GITHUB_TOKEN