Skip to content

Commit

Permalink
Restrict GitHub token permissions of CI workflows (crystal-lang#15087)
Browse files Browse the repository at this point in the history
  • Loading branch information
HertzDevil authored Oct 21, 2024
1 parent b10f171 commit cf801e7
Show file tree
Hide file tree
Showing 12 changed files with 24 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/aarch64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ name: AArch64 CI

on: [push, pull_request]

permissions: {}

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/master' }}
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ on:
branches:
- master

permissions: {}

env:
TRAVIS_OS_NAME: linux

Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/interpreter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ name: Interpreter Test

on: [push, pull_request]

permissions: {}

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/master' }}
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ name: Linux CI

on: [push, pull_request]

permissions: {}

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/master' }}
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/llvm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ name: LLVM CI

on: [push, pull_request]

permissions: {}

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/master' }}
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ name: macOS CI

on: [push, pull_request]

permissions: {}

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/master' }}
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/openssl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ name: OpenSSL CI

on: [push, pull_request]

permissions: {}

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/master' }}
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/regex-engine.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ name: Regex Engine CI

on: [push, pull_request]

permissions: {}

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/master' }}
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/smoke.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ name: Smoke tests

on: [push, pull_request]

permissions: {}

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/master' }}
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/wasm32.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ name: WebAssembly CI

on: [push, pull_request]

permissions: {}

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/master' }}
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/win.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ name: Windows CI

on: [push, pull_request]

permissions: {}

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/master' }}
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/win_build_portable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ on:
required: true
type: string

permissions: {}

jobs:
build:
runs-on: windows-2022
Expand Down

0 comments on commit cf801e7

Please sign in to comment.