From f6b55cd74d2e76b9d2073eeb333803e60e8e051c Mon Sep 17 00:00:00 2001 From: "Project Mu UEFI Bot [bot]" <45776386+uefibot@users.noreply.github.com> Date: Fri, 28 Apr 2023 13:23:55 -0400 Subject: [PATCH] Repo File Sync: Always publish logs in CodeQL workflow, fix container safe dir, add issue assignment workflow (#90) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit synced local file(s) with [microsoft/mu_devops](https://github.com/microsoft/mu_devops). 🤖: View the [Repo File Sync Configuration File](https://github.com/microsoft/mu_devops/blob/main/.sync/Files.yml) to see how files are synced. --- This PR was created automatically by the [repo-file-sync-action](https://github.com/BetaHuhn/repo-file-sync-action) workflow run [#4832448197](https://github.com/microsoft/mu_devops/actions/runs/4832448197) Signed-off-by: Project Mu UEFI Bot --- .azurepipelines/Ubuntu-GCC5.yml | 2 +- .azurepipelines/Windows-VS.yml | 2 +- .devcontainer/devcontainer.json | 4 +- .github/workflows/auto-approve.yml | 2 +- .github/workflows/auto-merge.yml | 2 +- .github/workflows/codeql.yml | 70 +++++++++++++++++--------- .github/workflows/issue-assignment.yml | 21 ++++++++ .github/workflows/label-issues.yml | 2 +- .github/workflows/label-sync.yml | 2 +- .github/workflows/release-draft.yml | 2 +- .github/workflows/stale.yml | 2 +- .github/workflows/triage-issues.yml | 2 +- 12 files changed, 77 insertions(+), 36 deletions(-) create mode 100644 .github/workflows/issue-assignment.yml diff --git a/.azurepipelines/Ubuntu-GCC5.yml b/.azurepipelines/Ubuntu-GCC5.yml index 150b4698..7042cf93 100644 --- a/.azurepipelines/Ubuntu-GCC5.yml +++ b/.azurepipelines/Ubuntu-GCC5.yml @@ -20,7 +20,7 @@ resources: type: github endpoint: microsoft name: microsoft/mu_devops - ref: refs/tags/v2.4.0 + ref: refs/tags/v2.5.1 containers: - container: linux-gcc image: ghcr.io/tianocore/containers/fedora-37-build:3b3eb8f diff --git a/.azurepipelines/Windows-VS.yml b/.azurepipelines/Windows-VS.yml index 1b316d73..5998a93a 100644 --- a/.azurepipelines/Windows-VS.yml +++ b/.azurepipelines/Windows-VS.yml @@ -20,7 +20,7 @@ resources: type: github endpoint: microsoft name: microsoft/mu_devops - ref: refs/tags/v2.4.0 + ref: refs/tags/v2.5.1 variables: - group: architectures-x86-64 diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index c6137677..aa85c55a 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -1,6 +1,6 @@ { "image": "ghcr.io/tianocore/containers/fedora-37-dev:latest", - "postCreateCommand": "git config --global --add safe.directory * && pip install --upgrade -r pip-requirements.txt", + "postCreateCommand": "git config --global --add safe.directory '*' && pip install --upgrade -r pip-requirements.txt", "customizations": { "vscode": { "extensions": [ @@ -9,4 +9,4 @@ ] } } -} \ No newline at end of file +} diff --git a/.github/workflows/auto-approve.yml b/.github/workflows/auto-approve.yml index 42610d08..021aaf7e 100644 --- a/.github/workflows/auto-approve.yml +++ b/.github/workflows/auto-approve.yml @@ -25,5 +25,5 @@ jobs: approval_check: if: | github.event.pull_request.user.login == 'dependabot[bot]' || github.event.pull_request.user.login == 'uefibot' - uses: microsoft/mu_devops/.github/workflows/AutoApprover.yml@v2.4.0 + uses: microsoft/mu_devops/.github/workflows/AutoApprover.yml@v2.5.1 secrets: inherit diff --git a/.github/workflows/auto-merge.yml b/.github/workflows/auto-merge.yml index 05a8e59e..bb9b76f4 100644 --- a/.github/workflows/auto-merge.yml +++ b/.github/workflows/auto-merge.yml @@ -26,5 +26,5 @@ jobs: merge_check: if: | github.event.pull_request.user.login == 'dependabot[bot]' || github.event.pull_request.user.login == 'uefibot' - uses: microsoft/mu_devops/.github/workflows/AutoMerger.yml@v2.4.0 + uses: microsoft/mu_devops/.github/workflows/AutoMerger.yml@v2.5.1 secrets: inherit diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 702c9cf2..b5436372 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -153,13 +153,43 @@ jobs: if: steps.get_ci_file_operations.outputs.setup_supported == 'true' run: stuart_setup -c .pytool/CISettings.py -t DEBUG -a ${{ matrix.archs }} TOOL_CHAIN_TAG=${{ matrix.tool_chain_tag }} + - name: Upload Setup Log As An Artifact + uses: actions/upload-artifact@v3 + if: (success() || failure()) && steps.get_ci_file_operations.outputs.setup_supported == 'true' + with: + name: ${{ matrix.package }}-Logs + path: | + **/SETUPLOG.txt + retention-days: 7 + if-no-files-found: ignore + - name: CI Setup if: steps.get_ci_file_operations.outputs.ci_setup_supported == 'true' run: stuart_ci_setup -c .pytool/CISettings.py -t DEBUG -a ${{ matrix.archs }} TOOL_CHAIN_TAG=${{ matrix.tool_chain_tag }} + - name: Upload CI Setup Log As An Artifact + uses: actions/upload-artifact@v3 + if: (success() || failure()) && steps.get_ci_file_operations.outputs.ci_setup_supported == 'true' + with: + name: ${{ matrix.package }}-Logs + path: | + **/CISETUP.txt + retention-days: 7 + if-no-files-found: ignore + - name: Update run: stuart_update -c .pytool/CISettings.py -t DEBUG -a ${{ matrix.archs }} TOOL_CHAIN_TAG=${{ matrix.tool_chain_tag }} + - name: Upload Update Log As An Artifact + uses: actions/upload-artifact@v3 + if: success() || failure() + with: + name: ${{ matrix.package }}-Logs + path: | + **/UPDATE_LOG.txt + retention-days: 7 + if-no-files-found: ignore + - name: Find CodeQL Plugin Directory id: find_dir shell: python @@ -240,6 +270,21 @@ jobs: STUART_CODEQL_PATH: ${{ steps.cache_key_gen.outputs.codeql_cli_ext_dep_dir }} run: stuart_ci_build -c .pytool/CISettings.py -t DEBUG -p ${{ matrix.package }} -a ${{ matrix.archs }} TOOL_CHAIN_TAG=${{ matrix.tool_chain_tag }} --codeql + - name: Upload Build Logs As An Artifact + uses: actions/upload-artifact@v3 + if: success() || failure() + with: + name: ${{ matrix.package }}-Logs + path: | + **/BUILD_REPORT.TXT + **/OVERRIDELOG.TXT + **/BUILDLOG_*.md + **/BUILDLOG_*.txt + **/CI_*.md + **/CI_*.txt + retention-days: 7 + if-no-files-found: ignore + - name: Prepare Env Data for CodeQL Upload id: env_data env: @@ -256,31 +301,6 @@ jobs: with open(os.environ['GITHUB_OUTPUT'], 'a') as fh: print(f'sarif_file_path={sarif_path}', file=fh) - - name: Upload Setup and Update Logs As An Artifact - uses: actions/upload-artifact@v3 - with: - name: ${{ matrix.package }}-Setup-Update-Logs - path: | - **/OVERRIDELOG.TXT - CISETUP.txt - SETUPLOG.txt - UPDATE_LOG.txt - retention-days: 3 - if-no-files-found: ignore - - - name: Upload Build Log As An Artifact - uses: actions/upload-artifact@v3 - with: - name: ${{ matrix.package }}-Build-Logs - path: | - **/BUILD_REPORT.TXT - BUILDLOG_*.md - BUILDLOG_*.txt - CI_*.md - CI_*.txt - retention-days: 7 - if-no-files-found: ignore - - name: Upload CodeQL Results (SARIF) As An Artifact uses: actions/upload-artifact@v3 with: diff --git a/.github/workflows/issue-assignment.yml b/.github/workflows/issue-assignment.yml new file mode 100644 index 00000000..45146c54 --- /dev/null +++ b/.github/workflows/issue-assignment.yml @@ -0,0 +1,21 @@ +# This workflow provides actions that should be applied when an issue is assigned. +# +# NOTE: This file is automatically synchronized from Mu DevOps. Update the original file there +# instead of the file in this repo. +# +# - Mu DevOps Repo: https://github.com/microsoft/mu_devops +# - File Sync Settings: https://github.com/microsoft/mu_devops/blob/main/.sync/Files.yml +# +# Copyright (c) Microsoft Corporation. +# SPDX-License-Identifier: BSD-2-Clause-Patent +# + +name: React to Issue Assignment + +on: + issues: + types: assigned + +jobs: + apply: + uses: microsoft/mu_devops/.github/workflows/IssueAssignment.yml@v2.5.1 diff --git a/.github/workflows/label-issues.yml b/.github/workflows/label-issues.yml index 560c9b0f..091dfa64 100644 --- a/.github/workflows/label-issues.yml +++ b/.github/workflows/label-issues.yml @@ -31,4 +31,4 @@ on: jobs: apply: - uses: microsoft/mu_devops/.github/workflows/Labeler.yml@v2.4.0 + uses: microsoft/mu_devops/.github/workflows/Labeler.yml@v2.5.1 diff --git a/.github/workflows/label-sync.yml b/.github/workflows/label-sync.yml index 3b8b85b1..6f7ee5a7 100644 --- a/.github/workflows/label-sync.yml +++ b/.github/workflows/label-sync.yml @@ -24,4 +24,4 @@ on: jobs: sync: - uses: microsoft/mu_devops/.github/workflows/LabelSyncer.yml@v2.4.0 + uses: microsoft/mu_devops/.github/workflows/LabelSyncer.yml@v2.5.1 diff --git a/.github/workflows/release-draft.yml b/.github/workflows/release-draft.yml index 835f7ef0..95aefe36 100644 --- a/.github/workflows/release-draft.yml +++ b/.github/workflows/release-draft.yml @@ -27,5 +27,5 @@ on: jobs: draft: - uses: microsoft/mu_devops/.github/workflows/ReleaseDrafter.yml@v2.4.0 + uses: microsoft/mu_devops/.github/workflows/ReleaseDrafter.yml@v2.5.1 secrets: inherit diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml index 859f12fe..1db1625a 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -24,4 +24,4 @@ on: jobs: check: - uses: microsoft/mu_devops/.github/workflows/Stale.yml@v2.4.0 + uses: microsoft/mu_devops/.github/workflows/Stale.yml@v2.5.1 diff --git a/.github/workflows/triage-issues.yml b/.github/workflows/triage-issues.yml index c7a3f557..62da52c1 100644 --- a/.github/workflows/triage-issues.yml +++ b/.github/workflows/triage-issues.yml @@ -19,4 +19,4 @@ on: jobs: triage: - uses: microsoft/mu_devops/.github/workflows/IssueTriager.yml@v2.4.0 + uses: microsoft/mu_devops/.github/workflows/IssueTriager.yml@v2.5.1