Skip to content

Commit

Permalink
Remove GHA permissions where possible (#4812)
Browse files Browse the repository at this point in the history
  • Loading branch information
mxcl authored Jan 11, 2024
1 parent 53548a4 commit 3ad1bb6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/ci-squared.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
pull_request:
paths:
- .github/workflows/pkg.yml
- .github/workflows/pkg-for-platform.yml
- .github/workflows/pkg-platform.yml
- .github/workflows/ci-squared.yml

concurrency:
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/pkg-platform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ jobs:
name: build ${{inputs.tinyname}}
runs-on: ${{ fromJSON(inputs.os) }}
container: ${{ inputs.container }}
permissions: {}
outputs:
project: ${{ steps.build.outputs.project }}
version: ${{ steps.build.outputs.version }}
Expand Down Expand Up @@ -100,6 +101,7 @@ jobs:
matrix:
os: ${{ fromJSON(inputs.test-os) }}
container: ${{ fromJSON(inputs.test-container) }}
permissions: {}
runs-on: ${{ matrix.os }}
container: ${{ matrix.container }}
env:
Expand All @@ -117,6 +119,7 @@ jobs:
bottle:
name: bottle (${{inputs.tinyname}}.${{matrix.compression}})
needs: [build, test]
permissions: {}
strategy:
matrix:
compression: [xz, gz]
Expand Down Expand Up @@ -188,6 +191,7 @@ jobs:
name: publish ${{inputs.tinyname}} ${{ inputs.dry-run && '(dry-run)' }}
runs-on: ubuntu-latest
needs: [bottle, build]
permissions: {}
env:
DIRNAME: ${{ needs.build.outputs.project }}/${{ needs.build.outputs.platform }}/${{ needs.build.outputs.arch }}
steps:
Expand Down

0 comments on commit 3ad1bb6

Please sign in to comment.