| 1 |
# Copyright 2023 The Archivista Contributors |
| 2 |
# |
| 3 |
# Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 |
# you may not use this file except in compliance with the License. |
| 5 |
# You may obtain a copy of the License at |
| 6 |
# |
| 7 |
# http://www.apache.org/licenses/LICENSE-2.0 |
| 8 |
# |
| 9 |
# Unless required by applicable law or agreed to in writing, software |
| 10 |
# distributed under the License is distributed on an "AS IS" BASIS, |
| 11 |
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 |
# See the License for the specific language governing permissions and |
| 13 |
# limitations under the License. |
| 14 |
|
| 15 |
name: Label issues |
| 16 |
on: |
| 17 |
issues: |
| 18 |
types: |
| 19 |
- reopened |
| 20 |
- opened |
| 21 |
permissions: |
| 22 |
contents: read |
| 23 |
|
| 24 |
jobs: |
| 25 |
label_issues: |
| 26 |
runs-on: ubuntu-latest |
| 27 |
permissions: |
| 28 |
issues: write |
| 29 |
steps: |
| 30 |
- name: Harden Runner |
| 31 |
uses: step-security/harden-runner@f4a75cfd619ee5ce8d5b864b0d183aff3c69b55a # v2.13.1 |
| 32 |
with: |
| 33 |
egress-policy: audit |
| 34 |
|
| 35 |
- uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0 |
| 36 |
with: |
| 37 |
script: | |
| 38 |
github.rest.issues.addLabels({ |
| 39 |
issue_number: context.issue.number, |
| 40 |
owner: context.repo.owner, |
| 41 |
repo: context.repo.repo, |
| 42 |
labels: ["needs triage"] |
| 43 |
}) |