[Prod] Security findings register ADR, PR quality checks workflow permissions #512
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: PR Jira Issue Link | |
| on: | |
| pull_request: | |
| types: [opened, edited, reopened, synchronize, ready_for_review] | |
| permissions: | |
| contents: read | |
| jobs: | |
| validate_jira_issue_link: | |
| if: ${{ github.event.pull_request.base.ref != 'production' }} | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out repository | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 1 | |
| persist-credentials: false | |
| - name: Set up Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version-file: .nvmrc | |
| - name: Validate Jira issue link in PR body | |
| env: | |
| PR_BODY: ${{ github.event.pull_request.body }} | |
| run: node ./tools/validate-pr-jira-issue-link.js |