Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Repo File Sync: Update to Mu DevOps 9.1.6 #866

Merged
merged 1 commit into from
Feb 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .azurepipelines/MuDevOpsWrapper.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ resources:
type: github
endpoint: microsoft
name: microsoft/mu_devops
ref: refs/tags/v9.1.5
ref: refs/tags/v9.1.6

parameters:
- name: do_ci_build
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 @@ -29,5 +29,5 @@ jobs:

if: |
github.event.pull_request.user.login == 'dependabot[bot]' || github.event.pull_request.user.login == 'uefibot'
uses: microsoft/mu_devops/.github/workflows/[email protected].5
uses: microsoft/mu_devops/.github/workflows/[email protected].6
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 @@ -32,5 +32,5 @@ jobs:

if: |
github.event.pull_request.user.login == 'dependabot[bot]' || github.event.pull_request.user.login == 'uefibot'
uses: microsoft/mu_devops/.github/workflows/[email protected].5
uses: microsoft/mu_devops/.github/workflows/[email protected].6
secrets: inherit
25 changes: 19 additions & 6 deletions .github/workflows/codeql-platform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
# Copyright (c) Microsoft Corporation.
# SPDX-License-Identifier: BSD-2-Clause-Patent


name: "CodeQL - Platform"

on:
Expand Down Expand Up @@ -147,25 +148,34 @@ jobs:
- name: Install/Upgrade pip Modules
run: pip install -r pip-requirements.txt --upgrade requests



- name: Get Cargo Tool Details
id: get_cargo_tool_details
shell: python
run: |
import os
import requests
import sys

GITHUB_REPO = "sagiegurari/cargo-make"
API_URL = f"https://api.github.com/repos/{GITHUB_REPO}/releases/latest"
api_url = f"https://api.github.com/repos/{GITHUB_REPO}/releases/tags/0.37.9"

response = requests.get(api_url)
if response.status_code == 200:
build_release_id = response.json()["id"]
else:
print("::error title=GitHub Release Error!::Failed to get cargo-make release ID!")
sys.exit(1)

# Default value in case getting latest fails, cache will fall
# back on this version.
latest_cargo_make_version = "0.36.13"
response = requests.get(API_URL)
api_url = f"https://api.github.com/repos/{GITHUB_REPO}/releases/{build_release_id}"

response = requests.get(api_url)
if response.status_code == 200:
latest_cargo_make_version = response.json()["tag_name"]
else:
print("::error title=GitHub Release Error!::Failed to get latest cargo-make version!")
print("::error title=GitHub Release Error!::Failed to get cargo-make!")
sys.exit(1)

cache_key = f'cargo-make-{latest_cargo_make_version}'

Expand All @@ -174,6 +184,7 @@ jobs:
print(f'cargo_make_cache_key={cache_key}', file=fh)
print(f'cargo_make_version={latest_cargo_make_version}', file=fh)


- name: Attempt to Load cargo-make From Cache
id: cargo_make_cache
uses: actions/cache@v4
Expand Down Expand Up @@ -519,3 +530,5 @@ jobs:
shell: pwsh
run: |
subst Z: /D


2 changes: 1 addition & 1 deletion .github/workflows/issue-assignment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ jobs:
contents: read
issues: write

uses: microsoft/mu_devops/.github/workflows/[email protected].5
uses: microsoft/mu_devops/.github/workflows/[email protected].6
2 changes: 1 addition & 1 deletion .github/workflows/label-issues.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,4 @@ jobs:
contents: read
pull-requests: write

uses: microsoft/mu_devops/.github/workflows/[email protected].5
uses: microsoft/mu_devops/.github/workflows/[email protected].6
2 changes: 1 addition & 1 deletion .github/workflows/label-sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ jobs:
permissions:
issues: write

uses: microsoft/mu_devops/.github/workflows/[email protected].5
uses: microsoft/mu_devops/.github/workflows/[email protected].6
2 changes: 1 addition & 1 deletion .github/workflows/release-draft.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@ jobs:
contents: write
pull-requests: write

uses: microsoft/mu_devops/.github/workflows/[email protected].5
uses: microsoft/mu_devops/.github/workflows/[email protected].6
secrets: inherit
2 changes: 1 addition & 1 deletion .github/workflows/stale.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ jobs:
issues: write
pull-requests: write

uses: microsoft/mu_devops/.github/workflows/[email protected].5
uses: microsoft/mu_devops/.github/workflows/[email protected].6
2 changes: 1 addition & 1 deletion .github/workflows/submodule-release-update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:

steps:
- name: Update Submodules to Latest Release
uses: microsoft/mu_devops/.github/actions/[email protected].5
uses: microsoft/mu_devops/.github/actions/[email protected].6
with:
GH_PAT: ${{ secrets.SUBMODULE_UPDATER_TOKEN }}
GH_USER: "ProjectMuBot"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/triage-issues.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ jobs:
permissions:
issues: write

uses: microsoft/mu_devops/.github/workflows/[email protected].5
uses: microsoft/mu_devops/.github/workflows/[email protected].6
Loading