Skip to content

Commit

Permalink
Repo File Sync: Always publish logs in CodeQL workflow, fix container…
Browse files Browse the repository at this point in the history
… safe dir, add issue assignment workflow (#383)

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 <uefibot@microsoft.com>
(cherry picked from commit 8b00f3f)
  • Loading branch information
uefibot authored and kenlautner committed Oct 17, 2023
1 parent dfce6b1 commit f0d6dd4
Show file tree
Hide file tree
Showing 14 changed files with 78 additions and 37 deletions.
2 changes: 1 addition & 1 deletion .azurepipelines/Ubuntu-CLANGPDB.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .azurepipelines/Ubuntu-GCC5.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .azurepipelines/Windows-CLANGPDB.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .azurepipelines/Windows-VS.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -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": [
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/auto-approve.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion .github/workflows/auto-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
70 changes: 45 additions & 25 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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:
Expand All @@ -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:
Expand Down
21 changes: 21 additions & 0 deletions .github/workflows/issue-assignment.yml
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion .github/workflows/label-issues.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion .github/workflows/label-sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion .github/workflows/release-draft.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion .github/workflows/stale.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion .github/workflows/triage-issues.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit f0d6dd4

Please sign in to comment.