Skip to content

[trusted.ci.jenkins.io] RPU Artifactory API token expires on the 2026-08-22 #6916

[trusted.ci.jenkins.io] RPU Artifactory API token expires on the 2026-08-22

[trusted.ci.jenkins.io] RPU Artifactory API token expires on the 2026-08-22 #6916

Workflow file for this run

name: Auto Labeler
on:
issues:
types: [opened, edited]
jobs:
autolabeler:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: stefanbuck/github-issue-parser@cb6e97157cbf851e3a393ff8d57c93a484cc323f # 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: tmp=${SERVICES%% (*}; echo "svc_labels=${tmp// /}" >> "$GITHUB_ENV"
- name: Generate token
id: generate_token
uses: actions/create-github-app-token@bcd2ba49218906704ab6c1aa796996da409d3eb1 # v3
# uses: tibdex/github-app-token@3beb63f4bd073e61482598c45c71c1019b59b73a # v2
with:
client-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"