diff --git a/.github/workflows/build_release.yml b/.github/workflows/build_release.yml index f55c91e..7ea457e 100644 --- a/.github/workflows/build_release.yml +++ b/.github/workflows/build_release.yml @@ -5,13 +5,14 @@ on: tags: - "v*" -permissions: - contents: write +permissions: {} jobs: release: name: Build and publish release artifacts runs-on: ubuntu-latest + permissions: + contents: write steps: - name: Check out tagged commit diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 1fac3a5..6f4bd54 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -6,8 +6,7 @@ on: branches: - main -permissions: - contents: read +permissions: {} concurrency: group: ${{ github.workflow }}-${{ github.head_ref || github.ref }} @@ -17,6 +16,8 @@ jobs: format: name: Format runs-on: ubuntu-latest + permissions: + contents: read steps: - name: Check out code @@ -40,6 +41,8 @@ jobs: lint: name: Lint runs-on: ubuntu-latest + permissions: + contents: read steps: - name: Check out code @@ -57,6 +60,8 @@ jobs: shell: name: Shell runs-on: ubuntu-latest + permissions: + contents: read steps: - name: Check out code diff --git a/.github/workflows/pr-cost.yml b/.github/workflows/pr-cost.yml index f89cfcb..e0eff3c 100644 --- a/.github/workflows/pr-cost.yml +++ b/.github/workflows/pr-cost.yml @@ -10,13 +10,14 @@ on: required: true type: number -permissions: - pull-requests: write - issues: write +permissions: {} jobs: cost: runs-on: ubuntu-latest + permissions: + pull-requests: read + issues: write steps: - uses: actions/github-script@v7 env: diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 45e3166..3bb3d71 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -6,8 +6,7 @@ on: branches: - main -permissions: - contents: read +permissions: {} concurrency: group: ${{ github.workflow }}-${{ github.head_ref || github.ref }} @@ -17,6 +16,8 @@ jobs: unit-tests: name: Unit tests runs-on: ubuntu-latest + permissions: + contents: read steps: - name: Check out code