Skip to content

Commit

Permalink
GitHub Workflows security hardening (#6246)
Browse files Browse the repository at this point in the history
  • Loading branch information
sashashura committed Sep 27, 2022
1 parent 284bc10 commit 8f5fe92
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/label-gun.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,13 @@ on:
issue_comment:
types: [created, edited, closed]

permissions: {}
jobs:
label:
permissions:
issues: write # to add label to an issues (retorquere/label-gun)
pull-requests: write # to add label, comment on pull request (retorquere/label-gun)

runs-on: ubuntu-latest
steps:
- uses: retorquere/label-gun@main
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/merge.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,13 @@ on:
description: Commit message
required: true

permissions: {}
jobs:
release:
permissions:
contents: write # to create a release
pull-requests: read # to read pull requests (dorny/paths-filter)

runs-on: ubuntu-latest
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/sheldon.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,13 @@ on:
pull_request_target:
types: [ opened, synchronize, workflow_dispatch]

permissions: {}
jobs:
test:
permissions:
contents: write # to push code in repo (stefanzweifel/git-auto-commit-action)
pull-requests: write # to comment on pull requests

runs-on: ubuntu-latest
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
Expand Down

0 comments on commit 8f5fe92

Please sign in to comment.