Files
openwrt-packages/.github/workflows/multi-arch-test-build.yml
George Sapkin bbaa539fbc ci: set explicit workflow permissions
Add explicit permissions for modifying pull requests to labeler and
multi-arch-test-build.

Signed-off-by: George Sapkin <george@sapk.in>
2025-12-04 06:00:35 +02:00

46 lines
1.1 KiB
YAML

name: Test and Build
on:
pull_request:
permissions:
contents: read
pull-requests: write
jobs:
formalities:
name: Test Formalities
uses: openwrt/actions-shared-workflows/.github/workflows/formal.yml@main
with:
post_comment: true
label_formality_status:
name: Add formality check labels
runs-on: ubuntu-slim
needs: formalities
if: always()
permissions:
pull-requests: write
steps:
- name: Add 'not following guidelines' label
if: needs.formalities.result == 'failure'
uses: buildsville/add-remove-label@v2.0.1
with:
token: ${{ secrets.GITHUB_TOKEN }}
labels: "not following guidelines"
type: add
- name: Remove 'not following guidelines' label
if: needs.formalities.result == 'success'
uses: buildsville/add-remove-label@v2.0.1
with:
token: ${{ secrets.GITHUB_TOKEN }}
labels: "not following guidelines"
type: remove
build:
name: Feeds Package Test Build
needs: formalities
uses: openwrt/actions-shared-workflows/.github/workflows/multi-arch-test-build.yml@main