1
0
mirror of https://github.com/containers/podman.git synced 2026-02-05 06:45:31 +01:00
Files
podman/.github/workflows/needs-info-labeler.yaml
Daniel Hast 30495081b7 ci: specify workflow permissions per job
Also remove some unnecessary permissions:

* The notification job in release-artifacts.yml only needs to read repo
  contents, not write contents and actions.
* All jobs in release.yml except "Create release" and "Update podman.io"
  only need to read repo contents. "Update podman.io" only needs to
  write repo contents and pull requests.
* Likewise, permissions for update-podmanio.yml can be restricted to
  only writing repo contents and pull requests.

Signed-off-by: Daniel Hast <hast.daniel@protonmail.com>
2025-12-01 08:42:39 -05:00

32 lines
1.0 KiB
YAML

name: Needs info labeler
on:
issues:
types:
- labeled
permissions: {}
jobs:
add-comment:
if: github.event.label.name == 'needs-info'
runs-on: ubuntu-latest
permissions:
issues: write
steps:
- name: Add comment
run: gh issue comment "$NUMBER" --body "$BODY"
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_REPO: ${{ github.repository }}
NUMBER: ${{ github.event.issue.number }}
BODY: |
A reviewer has determined we need more information to understand the reported issue. A comment on what is missing should be provided. Be certain you:
* provide an exact reproducer where possible
* verify you have provided all relevant information - minimum is `podman info`
* answer any follow up questions
If no response to the `needs-info` is provided in 30 days, this issue may be closed by our stale bot.
For more information on reporting issues on this repository, consult our [issue guide](ISSUE.md).