1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-02 19:32:19 +01:00

Constrain GH Actions workflows permissions (#2625)

This commit is contained in:
Otto Winter
2021-10-26 10:55:27 +02:00
committed by GitHub
parent a01f5f5cf1
commit c612a3bf60
3 changed files with 16 additions and 0 deletions

View File

@@ -17,6 +17,10 @@ on:
- 'requirements*.txt'
- 'platformio.ini'
permissions:
contents: read
packages: read
jobs:
check-docker:
name: Build docker containers

View File

@@ -8,6 +8,9 @@ on:
pull_request:
permissions:
contents: read
jobs:
ci:
name: ${{ matrix.name }}

View File

@@ -7,6 +7,9 @@ on:
schedule:
- cron: "0 2 * * *"
permissions:
contents: read
jobs:
init:
name: Initialize build
@@ -52,6 +55,9 @@ jobs:
deploy-docker:
name: Build and publish docker containers
if: github.repository == 'esphome/esphome'
permissions:
contents: read
packages: write
runs-on: ubuntu-latest
needs: [init]
strategy:
@@ -93,6 +99,9 @@ jobs:
deploy-docker-manifest:
if: github.repository == 'esphome/esphome'
permissions:
contents: read
packages: write
runs-on: ubuntu-latest
needs: [init, deploy-docker]
strategy: