mirror of
https://github.com/material-components/material-web.git
synced 2026-01-09 07:21:09 +08:00
chore: add explicit GitHub workflow permissions
PiperOrigin-RevId: 815915576
This commit is contained in:
parent
5345efddde
commit
417e1cfe67
5
.github/workflows/build-catalog.yml
vendored
5
.github/workflows/build-catalog.yml
vendored
@ -2,6 +2,9 @@ name: Build Catalog
|
||||
|
||||
on: [push]
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
build-catalog:
|
||||
runs-on: ubuntu-latest
|
||||
@ -16,4 +19,4 @@ jobs:
|
||||
- run: npm ci
|
||||
- run: npm run build:catalog
|
||||
env:
|
||||
WIREIT_FAILURES: continue
|
||||
WIREIT_FAILURES: continue
|
||||
|
||||
3
.github/workflows/commitlint.yml
vendored
3
.github/workflows/commitlint.yml
vendored
@ -2,6 +2,9 @@ name: commitlint
|
||||
|
||||
on: [pull_request]
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
commitlint:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
4
.github/workflows/firebase-hosting-merge.yml
vendored
4
.github/workflows/firebase-hosting-merge.yml
vendored
@ -5,6 +5,10 @@ name: Deploy to Firebase Hosting on release and manual
|
||||
- published
|
||||
workflow_dispatch:
|
||||
# allows triggering from the gihub UI
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
build_and_deploy:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
@ -5,6 +5,11 @@ name: Deploy to Firebase Hosting on PR
|
||||
on:
|
||||
pull_request:
|
||||
types: [ labeled ]
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
pull-requests: write
|
||||
|
||||
jobs:
|
||||
build_and_preview:
|
||||
if: github.event.label.name == 'preview-catalog' && github.event.pull_request.head.repo.full_name == github.repository
|
||||
|
||||
3
.github/workflows/nightly.yml
vendored
3
.github/workflows/nightly.yml
vendored
@ -6,6 +6,9 @@ on:
|
||||
workflow_dispatch:
|
||||
# allows triggering from the github UI
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
|
||||
jobs:
|
||||
check_for_changes:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
3
.github/workflows/publish.yml
vendored
3
.github/workflows/publish.yml
vendored
@ -5,6 +5,9 @@ on:
|
||||
tags:
|
||||
- 'v*'
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
publish:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
3
.github/workflows/test.yml
vendored
3
.github/workflows/test.yml
vendored
@ -2,6 +2,9 @@ name: Tests
|
||||
|
||||
on: [push]
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
5
.github/workflows/update-docs-on-main.yml
vendored
5
.github/workflows/update-docs-on-main.yml
vendored
@ -5,6 +5,11 @@ on:
|
||||
branches: main
|
||||
workflow_dispatch:
|
||||
# allows triggering from the github UI
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
pull-requests: write
|
||||
|
||||
jobs:
|
||||
check-for-doc-changes:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
5
.github/workflows/update-size-on-main.yml
vendored
5
.github/workflows/update-size-on-main.yml
vendored
@ -5,6 +5,11 @@ on:
|
||||
branches: main
|
||||
workflow_dispatch:
|
||||
# allows triggering from the github UI
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
pull-requests: write
|
||||
|
||||
jobs:
|
||||
check-for-doc-changes:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user