azure.yml 445 B

123456789101112131415161718192021222324
  1. name: Azure security for Pull Requests
  2. on:
  3. pull_request:
  4. branches:
  5. - '*'
  6. jobs:
  7. validate:
  8. runs-on: ubuntu-latest
  9. permissions:
  10. pull-requests: read
  11. steps:
  12. - name: Checkout code
  13. uses: actions/checkout@v2
  14. - name: Prevent file change
  15. uses: xalvarez/prevent-file-change-action@v1
  16. with:
  17. githubToken: ${{ secrets.GITHUB_TOKEN }}
  18. pattern: .*\azure-pipelines.yml