mirror of
https://github.com/TheAlgorithms/Java.git
synced 2025-07-05 16:27:33 +08:00
chore: explicitly set permissions (#6316)
This commit is contained in:
3
.github/workflows/build.yml
vendored
3
.github/workflows/build.yml
vendored
@ -1,6 +1,9 @@
|
||||
name: Build
|
||||
on: [push, pull_request]
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
|
3
.github/workflows/clang-format-lint.yml
vendored
3
.github/workflows/clang-format-lint.yml
vendored
@ -3,6 +3,9 @@ on:
|
||||
push: {}
|
||||
pull_request: {}
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
|
3
.github/workflows/infer.yml
vendored
3
.github/workflows/infer.yml
vendored
@ -8,6 +8,9 @@ name: Infer
|
||||
- master
|
||||
pull_request:
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
run_infer:
|
||||
runs-on: ubuntu-latest
|
||||
|
3
.github/workflows/project_structure.yml
vendored
3
.github/workflows/project_structure.yml
vendored
@ -8,6 +8,9 @@ name: ProjectStructure
|
||||
- master
|
||||
pull_request:
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
check_structure:
|
||||
runs-on: ubuntu-latest
|
||||
|
5
.github/workflows/stale.yml
vendored
5
.github/workflows/stale.yml
vendored
@ -2,8 +2,13 @@ name: 'Close stale issues and PRs'
|
||||
on:
|
||||
schedule:
|
||||
- cron: '0 0 * * *'
|
||||
permissions:
|
||||
contents: read
|
||||
jobs:
|
||||
stale:
|
||||
permissions:
|
||||
issues: write
|
||||
pull-requests: write
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/stale@v9
|
||||
|
Reference in New Issue
Block a user