Merge pull request #12952 from sashashura/patch-1

ci: workflows security hardening
This commit is contained in:
John Westcott IV
2023-04-11 15:51:07 -04:00
committed by GitHub
3 changed files with 11 additions and 0 deletions

View File

@@ -6,6 +6,10 @@ on:
- opened - opened
- reopened - reopened
permissions:
contents: read # to fetch code
issues: write # to label issues
jobs: jobs:
triage: triage:
runs-on: ubuntu-latest runs-on: ubuntu-latest

View File

@@ -7,6 +7,10 @@ on:
- reopened - reopened
- synchronize - synchronize
permissions:
contents: read # to determine modified files (actions/labeler)
pull-requests: write # to add labels to PRs (actions/labeler)
jobs: jobs:
triage: triage:
runs-on: ubuntu-latest runs-on: ubuntu-latest

View File

@@ -8,6 +8,9 @@ on:
release: release:
types: [published] types: [published]
permissions:
contents: read # to fetch code (actions/checkout)
jobs: jobs:
promote: promote:
if: endsWith(github.repository, '/awx') if: endsWith(github.repository, '/awx')