Skip to content

Commit

Permalink
improve
Browse files Browse the repository at this point in the history
  • Loading branch information
oliviertassinari committed Oct 5, 2022
1 parent 136bab7 commit fe787e6
Show file tree
Hide file tree
Showing 7 changed files with 30 additions and 10 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/check-if-pr-has-label.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,17 @@ on:
pull_request:
types: [opened, reopened, labeled, unlabeled]

permissions:
contents: read

jobs:
test-label-applied:
# Tests that label is added on the PR
test-label-applied: # Tests that label is added on the PR
permissions:
pull-requests: read
runs-on: ubuntu-latest
steps:
- uses: mnajdova/[email protected]
with:
mode: minimum
count: 1
labels: ""
labels: ''
6 changes: 3 additions & 3 deletions .github/workflows/issue-mark-duplicate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ on:
issue_comment:
types: [created]

permissions: # added using https://github.com/step-security/secure-workflows
permissions:
contents: read

jobs:
mark-duplicate:
permissions:
issues: write # for actions-cool/issues-helper to update issues
pull-requests: write # for actions-cool/issues-helper to update PRs
issues: write
pull-requests: write
runs-on: ubuntu-latest
steps:
- name: mark-duplicate
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/l10n.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,14 @@ on:
- master
- next

permissions:
contents: read

jobs:
# Tests dev-only scripts across all supported dev environments
update-l10n:
permissions:
issues: write
runs-on: ubuntu-latest
steps:
- run: echo "${{ github.actor }}"
Expand All @@ -22,7 +27,6 @@ jobs:
env:
# Don't need playwright in this job
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: 1
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: yarn l10n --report
env:
# Don't need playwright in this job
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/maintenance.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
name: 'Maintenance'

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

permissions: # added using https://github.com/step-security/secure-workflows
permissions:
contents: read

jobs:
main:
permissions:
pull-requests: write # for eps1lon/actions-label-merge-conflict to label PRs
pull-requests: write
runs-on: ubuntu-latest
steps:
- name: check if prs are dirty
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/no-response.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,13 @@ on:
# Schedule for five minutes after the hour, every hour
- cron: '5 * * * *'

permissions:
contents: read

jobs:
noResponse:
permissions:
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: lee-dohm/[email protected]
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/support-stackoverflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,12 @@ on:
types: [labeled, unlabeled, reopened]

permissions:
issues: write
contents: read

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

on: [pull_request]

permissions:
contents: read

jobs:
vale:
name: runner / vale
Expand Down

0 comments on commit fe787e6

Please sign in to comment.