From ea0fb9188a80f179cea2def1860ea7c04a995863 Mon Sep 17 00:00:00 2001 From: Jay Turner Date: Thu, 21 Sep 2023 10:01:34 +0100 Subject: [PATCH] Add permissions to example yml files This action requires the checks: write permission so I've added an example in the readme to save people from digging around to find the right permission --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.md b/README.md index 727968f..3af3563 100644 --- a/README.md +++ b/README.md @@ -33,6 +33,10 @@ If that's fine for you, using this action is as simple as: on: pull_request: push: +permissions: + contents: read + actions: read + checks: write jobs: build-test: name: Build & Test @@ -86,6 +90,10 @@ on: workflows: ['CI'] # runs after CI workflow types: - completed +permissions: + contents: read + actions: read + checks: write jobs: report: runs-on: ubuntu-latest