Skip to content

Commit

Permalink
Tested in mui/toolpad#849 it works
Browse files Browse the repository at this point in the history
Signed-off-by: Olivier Tassinari <[email protected]>
  • Loading branch information
oliviertassinari committed Oct 15, 2022
1 parent 776cbcc commit 642267a
Show file tree
Hide file tree
Showing 8 changed files with 18 additions and 37 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/check-if-pr-has-label.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,11 @@ on:
pull_request:
types: [opened, reopened, labeled, unlabeled]

permissions:
contents: read

jobs:
test-label-applied: # Tests that label is added on the PR
runs-on: ubuntu-latest
permissions:
pull-requests: read
contents: read
steps:
- uses: mnajdova/[email protected]
with:
Expand Down
4 changes: 0 additions & 4 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,14 @@ jobs:
actions: read
contents: read
security-events: write

strategy:
fail-fast: false
matrix:
language: ['javascript', 'typescript']
# Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support

steps:
- name: Checkout repository
uses: actions/checkout@v3

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
Expand All @@ -34,7 +31,6 @@ jobs:

# Details on CodeQL's query packs refer to : https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
# queries: security-extended,security-and-quality

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
with:
Expand Down
6 changes: 2 additions & 4 deletions .github/workflows/l10n.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,13 @@ on:
- master
- next

permissions:
contents: read

jobs:
# Tests dev-only scripts across all supported dev environments
update-l10n:
runs-on: ubuntu-latest
permissions:
contents: read
issues: write
runs-on: ubuntu-latest
steps:
- run: echo "${{ github.actor }}"
- uses: actions/checkout@v3
Expand Down
8 changes: 3 additions & 5 deletions .github/workflows/maintenance.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: 'Maintenance'
name: Maintenance

on:
# So that PRs touching the same files as the push are updated
Expand All @@ -15,14 +15,12 @@ on:
- next
types: [synchronize]

permissions:
contents: read

jobs:
main:
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: write
runs-on: ubuntu-latest
steps:
- name: check if prs are dirty
uses: eps1lon/actions-label-merge-conflict@releases/2.x
Expand Down
Original file line number Diff line number Diff line change
@@ -1,18 +1,16 @@
name: Issue Mark Duplicate
name: Mark duplicate

on:
issue_comment:
types: [created]

permissions:
contents: read

jobs:
mark-duplicate:
runs-on: ubuntu-latest
permissions:
contents: read
issues: write
pull-requests: write
runs-on: ubuntu-latest
steps:
- name: mark-duplicate
uses: actions-cool/issues-helper@v3
Expand Down
6 changes: 2 additions & 4 deletions .github/workflows/no-response.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,12 @@ on:
# Schedule for five minutes after the hour, every hour
- cron: '5 * * * *'

permissions:
contents: read

jobs:
noResponse:
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: lee-dohm/[email protected]
with:
Expand Down
8 changes: 3 additions & 5 deletions .github/workflows/support-stackoverflow.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,16 @@
# Configuration for support-requests - https://github.com/dessant/support-requests
name: 'Support Stack Overflow'
name: Support Stack Overflow

on:
issues:
types: [labeled, unlabeled, reopened]

permissions:
contents: read

jobs:
mark-support:
runs-on: ubuntu-latest
permissions:
contents: read
issues: write
runs-on: ubuntu-latest
steps:
- uses: dessant/support-requests@v2
with:
Expand Down
10 changes: 4 additions & 6 deletions .github/workflows/vale-action.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
name: reviewdog
name: Vale action

on: [pull_request]

permissions:
contents: read

jobs:
vale:
permissions:
pull-requests: write
name: runner / vale
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: write
steps:
- uses: actions/checkout@v3
- uses: errata-ai/vale-action@reviewdog
Expand Down

0 comments on commit 642267a

Please sign in to comment.