[infra.ci.jenkins.io] Track Digital Ocean PAT expiration (2026-01-28) used by terraform with updatecli #5805
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: Auto Labeler | |
| on: | |
| issues: | |
| types: [opened, edited] | |
| jobs: | |
| autolabeler: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: stefanbuck/github-issue-parser@2d2ff50d4aae06ab58d26bf59468d98086605f11 # v3 | |
| id: issue-parser | |
| with: | |
| template-path: .github/ISSUE_TEMPLATE/1-report-issue.yml | |
| - name: "Trim services list using only shell variable internal (no subshell to avoid injection!)" | |
| env: | |
| SERVICES: ${{ steps.issue-parser.outputs.issueparser_services }} | |
| run: echo "svc_labels=${SERVICES// /}" >> "$GITHUB_ENV" | |
| - name: Generate token | |
| id: generate_token | |
| uses: tibdex/github-app-token@3beb63f4bd073e61482598c45c71c1019b59b73a # v2 | |
| with: | |
| app_id: ${{ secrets.JENKINS_INFRA_HELPDESK_APP_ID }} | |
| private_key: ${{ secrets.JENKINS_INFRA_HELPDESK_APP_PRIVATE_KEY }} | |
| - run: gh issue edit "$NUMBER" --add-label "$LABELS" --remove-label "$RM_LABELS" | |
| env: | |
| GH_TOKEN: ${{ steps.generate_token.outputs.token }} | |
| GH_REPO: ${{ github.repository }} | |
| NUMBER: ${{ github.event.issue.number }} | |
| LABELS: ${{ env.svc_labels }} | |
| RM_LABELS: "other" |