Skip to content

Commit

Permalink
Add Gradle Wrapper validation and explicit limit the CI token (#3919)
Browse files Browse the repository at this point in the history
  • Loading branch information
hfhbd committed Feb 25, 2023
1 parent 815e9cd commit 2e4da91
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/PR.yml
Expand Up @@ -24,6 +24,8 @@ jobs:
job: gradle-plugin-tests

runs-on: ${{matrix.os}}
permissions:
contents: read

steps:
- name: Checkout the repo
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/Release.yml
Expand Up @@ -19,6 +19,8 @@ jobs:

runs-on: ${{matrix.os}}
if: github.repository == 'cashapp/sqldelight'
permissions:
contents: read

steps:
- name: Checkout the repo
Expand Down Expand Up @@ -58,6 +60,8 @@ jobs:
publish_plugin:
runs-on: ubuntu-latest
if: github.repository == 'cashapp/sqldelight'
permissions:
contents: read
needs: publish_archives
steps:
- name: Checkout the repo
Expand Down
18 changes: 18 additions & 0 deletions .github/workflows/gradleWrapper.yml
@@ -0,0 +1,18 @@
name: Gradle Wrapper Validation

on:
pull_request:
paths:
- 'gradlew'
- 'gradlew.bat'
- 'gradle/wrapper/'

jobs:
validateWrapper:
runs-on: ubuntu-latest
permissions:
contents: read

steps:
- uses: actions/checkout@v3
- uses: gradle/wrapper-validation-action@v1

0 comments on commit 2e4da91

Please sign in to comment.