Skip to content

[Actions] Updated .github/workflows/update-labels.yml #37

[Actions] Updated .github/workflows/update-labels.yml

[Actions] Updated .github/workflows/update-labels.yml #37

Workflow file for this run

name: "Repo: Update Labels"
on:
push:
branches:
- main
paths:
- '.github/labels.yml'
- '.github/workflows/update-labels.yml'
concurrency:
group: ${{github.workflow}}-${{github.ref}}
cancel-in-progress: true
jobs:
update-labels-config:
runs-on: ubuntu-latest
steps:
- name: "Initialise Workspace"
if: startsWith(runner.name, 'buildagent-')
shell: bash
run: sudo chown -R "$USER:$USER" "$GITHUB_WORKSPACE"
- name: "Harden Security"
uses: step-security/[email protected]
with:
egress-policy: audit
disable-sudo: true
allowed-endpoints: >
api.github.com:443
api.osv.dev:443
api.securityscorecards.dev:443
codeload.github.com:443
fulcio.sigstore.dev:443
github.com:443
oss-fuzz-build-logs.storage.googleapis.com:443
rekor.sigstore.dev:443
tuf-repo-cdn.sigstore.dev:443
www.bestpractices.dev:443
- name: "Checkout Source"
uses: actions/[email protected]
with:
fetch-depth: 0
fetch-tags: true
token: ${{secrets.SOURCE_PUSH_TOKEN}}
- name: "Update Github label config"
if: success()
uses: crazy-max/[email protected]
with:
github-token: ${{secrets.SOURCE_PUSH_TOKEN}}
yaml-file: .github/labels.yml
skip-delete: true
dry-run: false
exclude: |
help*
*issue