Skip to content

Commit

Permalink
Use stricter permissions where possible
Browse files Browse the repository at this point in the history
  • Loading branch information
Juice10 authored Feb 11, 2025
1 parent b34a635 commit 569d028
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ concurrency: ${{ github.workflow }}-${{ github.ref }}
jobs:
release:
name: Tests
permissions: read-all
permissions:
contents: read
runs-on: ubuntu-22.04
steps:
- name: Checkout Repo
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/style-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ on: [push, pull_request_target]
jobs:
eslint_check_upload:
runs-on: ubuntu-latest
permissions: read-all
permissions:
contents: read
name: ESLint Check and Report Upload

steps:
Expand Down Expand Up @@ -55,7 +56,8 @@ jobs:
prettier_check:
# In the forked PR, it's hard to format code and push to the branch directly, so the action only check the format correctness.
if: github.event_name != 'push' && github.event.pull_request.head.repo.full_name != 'rrweb-io/rrweb'
permissions: read-all
permissions:
contents: read
runs-on: ubuntu-latest
name: Format Check
steps:
Expand Down

0 comments on commit 569d028

Please sign in to comment.