Skip to content

Commit

Permalink
GitHub Workflows security hardening (#7728)
Browse files Browse the repository at this point in the history
* build: harden Issue-Needs-Attention.yml permissions

Signed-off-by: Alex <aleksandrosansan@gmail.com>

* build: harden gradle-wrapper-validation.yml permissions

Signed-off-by: Alex <aleksandrosansan@gmail.com>

Signed-off-by: Alex <aleksandrosansan@gmail.com>
  • Loading branch information
sashashura committed Sep 28, 2022
1 parent 530b3f4 commit 8ed5f3e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/Issue-Needs-Attention.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ on:
issue_comment:
types: created

permissions: {}
jobs:
applyNeedsAttentionLabel:
permissions:
issues: write # to remove and add labels
uses: realm/ci-actions/.github/workflows/issue-needs-attention.yml@main
3 changes: 3 additions & 0 deletions .github/workflows/gradle-wrapper-validation.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
name: "Validate Gradle Wrapper"
on: [push, pull_request]

permissions:
contents: read # to fetch code (actions/checkout)

jobs:
validation:
name: "Validation"
Expand Down

0 comments on commit 8ed5f3e

Please sign in to comment.