Skip to content

Merge https://github.com/cisagov/skeleton-generic into lineage/skeleton #15

Merge https://github.com/cisagov/skeleton-generic into lineage/skeleton

Merge https://github.com/cisagov/skeleton-generic into lineage/skeleton #15

Workflow file for this run

---
name: sync-labels
on:
push:
paths:
- .github/labels.yml
- .github/workflows/sync-labels.yml
<<<<<<< HEAD

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

View workflow run for this annotation

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

Invalid workflow file

You have an error in your yaml syntax on line 9
=======
workflow_dispatch:
>>>>>>> f517db7930c879e0b365c3a7795d722894fea581
permissions:
contents: read
jobs:
diagnostics:
name: Run diagnostics
# This job does not need any permissions
permissions: {}
runs-on: ubuntu-latest
steps:
# Note that a duplicate of this step must be added at the top of
# each job.
- uses: GitHubSecurityLab/actions-permissions/monitor@v1
with:
# Uses the organization variable unless overridden
config: ${{ vars.ACTIONS_PERMISSIONS_CONFIG }}
# Note that a duplicate of this step must be added at the top of
# each job.
- id: harden-runner
name: Harden the runner
uses: step-security/harden-runner@v2
with:
egress-policy: audit
- id: github-status
name: Check GitHub status
uses: crazy-max/ghaction-github-status@v4
- id: dump-context
name: Dump context
uses: crazy-max/ghaction-dump-context@v2
labeler:
needs:
- diagnostics
permissions:
# actions/checkout needs this to fetch code
contents: read
# crazy-max/ghaction-github-labeler needs this to manage repository labels
issues: write
runs-on: ubuntu-latest
steps:
- uses: GitHubSecurityLab/actions-permissions/monitor@v1
with:
# Uses the organization variable unless overridden
config: ${{ vars.ACTIONS_PERMISSIONS_CONFIG }}
- id: harden-runner
name: Harden the runner
uses: step-security/harden-runner@v2
with:
egress-policy: audit
- uses: actions/checkout@v4
- name: Sync repository labels
if: success()
uses: crazy-max/ghaction-github-labeler@v5
with:
# This is a hideous ternary equivalent so we only do a dry run unless
# this workflow is triggered by the develop branch.
dry-run: ${{ github.ref_name == 'develop' && 'false' || 'true' }}