diff --git a/.github/workflows/targeting-repo-files.yml b/.github/workflows/targeting-repo-files.yml deleted file mode 100644 index aec664e..0000000 --- a/.github/workflows/targeting-repo-files.yml +++ /dev/null @@ -1,39 +0,0 @@ -# This workflow verifies that an author submitting a pull request to the main -# branch to modify repository files is authorized to do so; only users with -# maintainer or admin rights may modify the actions or the workflow definitions. -name: Authorization -on: - pull_request_target: # Required to retrieve permissions to verify for forks - branches: - - main - paths: - - "*.yml" - - .github/** - - .openpublishing* - - LICENSE* - - dsc/docfx.json - - dsc/mapping/** - - ThirdPartyNotices -permissions: - contents: read -jobs: - Test: - name: Check Repo File Permissions - runs-on: windows-latest - defaults: - run: - shell: pwsh - steps: - - name: Authorized to Modify Repo Files? - uses: MicrosoftDocs/PowerShell-Docs/.github/actions/verification/authorization/v1@a3de8f22552170e70852470d46cd52cd9ca471ec - with: - token: ${{ secrets.GITHUB_TOKEN }} - target: | - path: - *.yml - .github/** - .openpublishing* - LICENSE* - dsc/docfx.json - dsc/mapping/** - ThirdPartyNotices diff --git a/.github/workflows/targeting-valid-branch.yml b/.github/workflows/targeting-valid-branch.yml deleted file mode 100644 index a1bde7b..0000000 --- a/.github/workflows/targeting-valid-branch.yml +++ /dev/null @@ -1,23 +0,0 @@ -# This workflow verifies that an author submitting a pull request to the live -# branch is authorized to do so; only users with maintainer or admin rights may -# target the live branch directly. -name: Authorization -on: - pull_request_target: # Required to retrieve permissions to verify for forks - branches: - - live -permissions: - contents: read -jobs: - Test: - name: Check Branch Permissions - runs-on: windows-latest - defaults: - run: - shell: pwsh - steps: - - name: Authorized to Target Live Branch? - uses: MicrosoftDocs/PowerShell-Docs/.github/actions/verification/authorization/v1@a3de8f22552170e70852470d46cd52cd9ca471ec - with: - token: ${{ secrets.GITHUB_TOKEN }} - authorized_accounts: learn-build-service-prod[bot]