Skip to content

Commit

Permalink
setup CI permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
rlespinasse committed Oct 31, 2024
1 parent b86c0e6 commit 26b53e3
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ name: Lint Code Base

on: pull_request

permissions: read-all

jobs:
build:
name: Lint Code Base
Expand All @@ -15,12 +17,14 @@ jobs:
- name: Checkout Code
uses: actions/checkout@v4
with:
# Full git history is needed to get a proper list of changed files within `super-linter`
# Full git history is needed to get a proper
# list of changed files within `super-linter`
fetch-depth: 0

- name: Lint Code Base
uses: github/super-linter@v7
env:
VALIDATE_ALL_CODEBASE: false
VALIDATE_MARKDOWN_PRETTIER: false
DEFAULT_BRANCH: v5.x
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6 changes: 6 additions & 0 deletions .github/workflows/v5-tests-and-release.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
name: "[v5] Test and Release"
on: [push, pull_request]
permissions: read-all
jobs:
display:
name: "Display produced variables"
Expand Down Expand Up @@ -266,6 +267,11 @@ jobs:

release:
runs-on: ubuntu-latest
permissions:
contents: write
issues: write
id-token: write
packages: write
concurrency:
group: release-${{ github.ref }}-${{ github.event_name }}
needs:
Expand Down

0 comments on commit 26b53e3

Please sign in to comment.