Skip to content

fix(security): use env vars instead of direct input interpolation in … #30

fix(security): use env vars instead of direct input interpolation in …

fix(security): use env vars instead of direct input interpolation in … #30

Workflow file for this run

name: Sync Labels
on:
workflow_call:
inputs:
config:
description: Path to the labels YAML definition file
type: string
required: false
default: .github/labels.yml
dry_run:
description: Preview changes without applying them
type: boolean
required: false
default: false
skip_delete:
description: Skip deletion of labels not present in the config file
type: boolean
required: false
default: false
secrets:
GITHUB_TOKEN:

Check failure on line 22 in .github/workflows/labels-sync.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/labels-sync.yml

Invalid workflow file

secret name `GITHUB_TOKEN` within `workflow_call` can not be used since it would collide with system reserved name
required: false
workflow_dispatch:
inputs:
config:
description: Path to the labels YAML definition file
type: string
required: false
default: .github/labels.yml
dry_run:
description: Dry run — preview changes without applying them
type: boolean
default: false
skip_delete:
description: Skip deletion of labels not present in the config file
type: boolean
default: false
permissions:
issues: write
contents: read
jobs:
sync:
name: Sync labels to repository
runs-on: ubuntu-latest
steps:
- name: Sync labels
uses: ./src/labels-sync
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
config: ${{ inputs.config || '.github/labels.yml' }}
dry-run: ${{ inputs.dry_run || false }}
skip-delete: ${{ inputs.skip_delete || false }}