Skip to content

Commit

Permalink
Merge pull request #896 from krakend/add_workflows_permissions
Browse files Browse the repository at this point in the history
Add permissions to label workflows
  • Loading branch information
alombarte committed Jul 2, 2024
2 parents 21768ff + 0d7076d commit 1de5eca
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ on:
name: Issue and PR hygiene
jobs:
stale:
uses: krakendio/.github/.github/workflows/stale.yml@main
uses: krakend/.github/.github/workflows/stale.yml@main
lock-threads:
uses: krakendio/.github/.github/workflows/lock-threads.yml@main
uses: krakend/.github/.github/workflows/lock-threads.yml@main
5 changes: 4 additions & 1 deletion .github/workflows/labels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,7 @@ on:
types: [labeled, unlabeled]
jobs:
stale:
uses: krakendio/.github/.github/workflows/label-commenter.yml@main
uses: krakend/.github/.github/workflows/label-commenter.yml@main
permissions:
issues: write
pull-requests: write
11 changes: 8 additions & 3 deletions .github/workflows/security.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,15 @@ jobs:
security-repo-scan:
name: security-repo-scan
runs-on: ubuntu-latest
permissions:
security-events: write
actions: read
contents: read

steps:
- name: Checkout
- name: Checkout
uses: actions/checkout@v3

- name: Run Trivy vulnerability scanner in repo mode
uses: aquasecurity/trivy-action@master
with:
Expand All @@ -46,7 +51,7 @@ jobs:
dockerfile: Dockerfile
runs-on: ubuntu-latest
steps:
- name: Checkout
- name: Checkout
uses: actions/checkout@v3

- name: Set the environment variables
Expand Down

0 comments on commit 1de5eca

Please sign in to comment.