From 094735f05e580aa4f3cb2904a1de1503ee78349b Mon Sep 17 00:00:00 2001 From: Lingfan Gao Date: Wed, 5 Oct 2022 18:02:59 +0200 Subject: [PATCH 1/3] chore: screener-run workflow should report to PR Adds the [action-workflow_run action](https://github.com/marketplace/actions/workflow_run-status) to automatically associate the screener-run workflow with the commit of the workflow that triggered it. This should result in the jobs showing up in PR status --- .github/workflows/screener-run.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/screener-run.yml b/.github/workflows/screener-run.yml index 6ddd0a26c50bef..f9f6680b3f261e 100644 --- a/.github/workflows/screener-run.yml +++ b/.github/workflows/screener-run.yml @@ -12,6 +12,8 @@ jobs: determine-if-skipping: runs-on: 'ubuntu-latest' steps: + - uses: haya14busa/action-workflow_run-status@v1 + - name: Download artifact to determine if skipping jobs uses: dawidd6/action-download-artifact@v2 with: @@ -32,6 +34,7 @@ jobs: runs-on: 'ubuntu-latest' name: Screener @fluentui/react-northstar steps: + - uses: haya14busa/action-workflow_run-status@v1 - uses: actions/checkout@v3 with: fetch-depth: 0 @@ -111,6 +114,7 @@ jobs: runs-on: 'ubuntu-latest' name: Screener @fluentui/react steps: + - uses: haya14busa/action-workflow_run-status@v1 - uses: actions/checkout@v3 with: fetch-depth: 0 @@ -187,6 +191,7 @@ jobs: runs-on: 'ubuntu-latest' name: Screener @fluentui/react-components steps: + - uses: haya14busa/action-workflow_run-status@v1 - uses: actions/checkout@v3 with: fetch-depth: 0 From 3579955fc3305a71ba5c39c6a4571861c07dcf5c Mon Sep 17 00:00:00 2001 From: Lingfan Gao Date: Mon, 10 Oct 2022 10:38:06 +0200 Subject: [PATCH 2/3] add permissions --- .github/workflows/screener-run.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/screener-run.yml b/.github/workflows/screener-run.yml index f9f6680b3f261e..5f2393509fcedf 100644 --- a/.github/workflows/screener-run.yml +++ b/.github/workflows/screener-run.yml @@ -5,6 +5,10 @@ on: - Screener build types: - completed +permissions: + actions: read + statuses: write + pull-requests: read env: AZURE_STORAGE_CONNECTION_STRING: ${{secrets.AZURE_STORAGE_CONNECTION_STRING}} From 6b4afc2f135bef344ca8a75eb37e4c5d860a0938 Mon Sep 17 00:00:00 2001 From: Lingfan Gao Date: Mon, 10 Oct 2022 10:45:37 +0200 Subject: [PATCH 3/3] add contents permission --- .github/workflows/screener-run.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/screener-run.yml b/.github/workflows/screener-run.yml index 5f2393509fcedf..f0413ce0f8de2f 100644 --- a/.github/workflows/screener-run.yml +++ b/.github/workflows/screener-run.yml @@ -9,6 +9,7 @@ permissions: actions: read statuses: write pull-requests: read + contents: read env: AZURE_STORAGE_CONNECTION_STRING: ${{secrets.AZURE_STORAGE_CONNECTION_STRING}}