Skip to content

Commit

Permalink
what happens if nothing has any permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexWaygood committed Jan 21, 2025
1 parent 85ac91c commit 9b1226b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 26 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/build-binaries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@ concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

permissions:
contents: read
permissions: {}

env:
PACKAGE_NAME: ruff
Expand Down
24 changes: 0 additions & 24 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,6 @@ jobs:
code: ${{ steps.changed.outputs.code_any_changed }}
# Flag that is raised when any code that affects the fuzzer is changed
fuzz: ${{ steps.changed.outputs.fuzz_any_changed }}
permissions:
pull-requests: read
steps:
- uses: actions/checkout@v4
with:
Expand Down Expand Up @@ -102,8 +100,6 @@ jobs:
name: "cargo fmt"
runs-on: ubuntu-latest
timeout-minutes: 10
permissions:
contents: read
steps:
- uses: actions/checkout@v4
with:
Expand All @@ -116,8 +112,6 @@ jobs:
name: "cargo clippy"
runs-on: ubuntu-latest
needs: determine_changes
permissions:
contents: read
if: ${{ needs.determine_changes.outputs.code == 'true' || github.ref == 'refs/heads/main' }}
timeout-minutes: 20
steps:
Expand All @@ -138,8 +132,6 @@ jobs:
name: "cargo test (linux)"
runs-on: depot-ubuntu-22.04-16
needs: determine_changes
permissions:
contents: read
if: ${{ needs.determine_changes.outputs.code == 'true' || github.ref == 'refs/heads/main' }}
timeout-minutes: 20
steps:
Expand Down Expand Up @@ -188,8 +180,6 @@ jobs:
needs: determine_changes
if: ${{ needs.determine_changes.outputs.code == 'true' || github.ref == 'refs/heads/main' }}
timeout-minutes: 20
permissions:
contents: read
steps:
- uses: actions/checkout@v4
with:
Expand Down Expand Up @@ -245,8 +235,6 @@ jobs:
needs: determine_changes
if: ${{ needs.determine_changes.outputs.code == 'true' || github.ref == 'refs/heads/main' }}
timeout-minutes: 10
permissions:
contents: read
steps:
- uses: actions/checkout@v4
with:
Expand Down Expand Up @@ -275,8 +263,6 @@ jobs:
name: "cargo build (release)"
runs-on: macos-latest
if: ${{ github.ref == 'refs/heads/main' }}
permissions:
contents: read
timeout-minutes: 20
steps:
- uses: actions/checkout@v4
Expand All @@ -294,8 +280,6 @@ jobs:
name: "cargo build (msrv)"
runs-on: ubuntu-latest
needs: determine_changes
permissions:
contents: read
if: ${{ needs.determine_changes.outputs.code == 'true' || github.ref == 'refs/heads/main' }}
timeout-minutes: 20
steps:
Expand Down Expand Up @@ -548,8 +532,6 @@ jobs:
name: "cargo shear"
runs-on: ubuntu-latest
needs: determine_changes
permissions:
contents: read
if: ${{ needs.determine_changes.outputs.code == 'true' || github.ref == 'refs/heads/main' }}
steps:
- uses: actions/checkout@v4
Expand All @@ -563,8 +545,6 @@ jobs:
name: "python package"
runs-on: ubuntu-latest
timeout-minutes: 20
permissions:
contents: read
steps:
- uses: actions/checkout@v4
with:
Expand Down Expand Up @@ -592,8 +572,6 @@ jobs:
name: "pre-commit"
runs-on: ubuntu-latest
timeout-minutes: 10
permissions:
contents: read
steps:
- uses: actions/checkout@v4
with:
Expand Down Expand Up @@ -736,8 +714,6 @@ jobs:
needs: determine_changes
if: ${{ github.repository == 'astral-sh/ruff' && (needs.determine_changes.outputs.code == 'true' || github.ref == 'refs/heads/main') }}
timeout-minutes: 20
permissions:
contents: read
steps:
- name: "Checkout Branch"
uses: actions/checkout@v4
Expand Down

0 comments on commit 9b1226b

Please sign in to comment.