Fall back to the mount table when NodeUnpublishVolume cannot stat the target path #23
Workflow file for this run
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
| # Runs only when repository variable ENABLE_INTERNAL_GATES=true (internal repo). | |
| # Public mirror (NetApp/trident) omits that variable so this job is skipped. | |
| name: changelog-label-check | |
| on: | |
| pull_request: | |
| types: [opened, edited, reopened, synchronize, labeled, unlabeled] | |
| branches: | |
| - master | |
| - stable/v** | |
| permissions: | |
| pull-requests: read | |
| jobs: | |
| changelog-label-check: | |
| if: vars.ENABLE_INTERNAL_GATES == 'true' | |
| name: Changelog label validation | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Harden the runner (Audit all outbound calls) | |
| uses: step-security/harden-runner@a5ad31d6a139d249332a2605b85202e8c0b78450 # v2.19.1 | |
| with: | |
| egress-policy: audit | |
| - name: Validate changelog label on PR | |
| env: | |
| GH_TOKEN: ${{ github.token }} | |
| PR_NUMBER: ${{ github.event.pull_request.number }} | |
| run: | | |
| set -euo pipefail | |
| repo="${{ github.repository }}" | |
| pr="${PR_NUMBER}" | |
| if [[ ! "${pr}" =~ ^[0-9]+$ ]]; then | |
| echo "::error::Invalid pull request number: ${pr}" | |
| exit 1 | |
| fi | |
| mapfile -t labels < <(gh api "repos/${repo}/pulls/${pr}" --jq '.labels[].name') | |
| has_needs=false | |
| has_no=false | |
| for label in "${labels[@]}"; do | |
| case "$label" in | |
| needs-changelog) has_needs=true ;; | |
| no-changelog) has_no=true ;; | |
| esac | |
| done | |
| if [[ "$has_needs" == true && "$has_no" == true ]]; then | |
| echo "::error::PR has both \`needs-changelog\` and \`no-changelog\` labels. Remove one so exactly one remains." | |
| echo "::error::Edit labels on this PR in the GitHub UI so only one changelog label remains." | |
| exit 1 | |
| fi | |
| if [[ "$has_needs" == false && "$has_no" == false ]]; then | |
| echo "::error::PR is missing a changelog label. Add exactly one: \`needs-changelog\` or \`no-changelog\`." | |
| echo "::error::Set \`needs-changelog\` (user-facing change; add a release note in the PR description) or \`no-changelog\` (no release note needed; add a brief rationale in the PR description) in the GitHub labels panel." | |
| exit 1 | |
| fi | |
| if [[ "$has_needs" == true ]]; then | |
| echo "Changelog label \`needs-changelog\` is set." | |
| else | |
| echo "Changelog label \`no-changelog\` is set." | |
| fi |