diff --git a/.github/workflows/publish-snapshot.yml b/.github/workflows/publish-snapshot.yml index 45029f7ac..69952b9f2 100644 --- a/.github/workflows/publish-snapshot.yml +++ b/.github/workflows/publish-snapshot.yml @@ -2,11 +2,16 @@ name: Maven Publish Snapshot on: [workflow_dispatch] +permissions: {} + jobs: build: runs-on: ubuntu-latest + permissions: + contents: write # for git-push after version modifications + steps: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # tag=v4.2.2 - name: Set up JDK 8 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 5cfdfc96d..72c8afb60 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -9,12 +9,14 @@ on: default: false type: boolean +permissions: {} + jobs: build: runs-on: ubuntu-latest permissions: - contents: write + contents: write # for git-push after version modifications steps: - name: Checkout code