From nobody Tue May 21 19:34:34 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) client-ip=66.175.222.108; envelope-from=bounce+27952+95928+1787277+3901457@groups.io; helo=mail02.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+95928+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=linux.microsoft.com ARC-Seal: i=1; a=rsa-sha256; t=1667521994; cv=none; d=zohomail.com; s=zohoarc; b=k+V/9u+XNih9nWrZaCcGdyZrzueOMrkvpMJuFr+ovuph31YclSB1BstK4MNt+gtCPLKZHvIbIVh8ZzY8vSmLp+EKm1WTlO9oTy0DD5W5RPSAkYee9baJOsoKiar6TrJ0hfyrQmbNXTP4YXyw3U2l66YzW1t2AlqiGsFbu1i7/ZY= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1667521994; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:References:Sender:Subject:To; bh=9hgF9owKicDES8IfarH9f7EAGLextQXnVyTUVAUuHK0=; b=StjvxXjv+g7B4wU756xkankoNDyMikU90ljPxTdov4oyg6taF9dPLxbTPZnZrayllgN5OiRIWB7Ym8zbsAnHMXVh/gz9ZaIKWa6R/GTasoqMSPUg5wWsFVLB33SkJpeORDmtUcAhZJJ0gHsk9TcBgvzHoVZJovJ0jyq3zTK0CR4= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+95928+1787277+3901457@groups.io; dmarc=fail header.from= (p=none dis=none) Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 1667521994485734.9106119653605; Thu, 3 Nov 2022 17:33:14 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id KMVrYY1788612xQCLdzrSvlk; Thu, 03 Nov 2022 17:33:14 -0700 X-Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by mx.groups.io with SMTP id smtpd.web08.5961.1667521993594631602 for ; Thu, 03 Nov 2022 17:33:13 -0700 X-Received: from localhost.localdomain (unknown [47.201.8.94]) by linux.microsoft.com (Postfix) with ESMTPSA id 86640205DA48; Thu, 3 Nov 2022 17:33:12 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 86640205DA48 From: "Michael Kubacki" To: devel@edk2.groups.io Cc: Andrew Fish , Leif Lindholm , Michael D Kinney , Sean Brogan Subject: [edk2-devel] [PATCH v3 1/2] Maintainers.txt: Add .github maintainers and reviewers Date: Thu, 3 Nov 2022 20:32:34 -0400 Message-Id: <20221104003235.2429-2-mikuback@linux.microsoft.com> In-Reply-To: <20221104003235.2429-1-mikuback@linux.microsoft.com> References: <20221104003235.2429-1-mikuback@linux.microsoft.com> MIME-Version: 1.0 Precedence: Bulk List-Unsubscribe: List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,mikuback@linux.microsoft.com X-Gm-Message-State: grNniNWLikfoaaWsnFRR7H9Lx1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1667521994; bh=9hgF9owKicDES8IfarH9f7EAGLextQXnVyTUVAUuHK0=; h=Cc:Date:From:Reply-To:Subject:To; b=scUtgpSei3oEgN7n0DE2cLYc2HnYl6nadDawuQtXHutIHwlRu8lGbvyk0ibnxcS8Zbv YnaxEKnDLCk9fclOxakbnjJktXkCqFSC2K8gh+WDMqz+KAwZvy3A54ElxaGImPTkPiVvt EbBCxjDBcbn0ya/9QMBCtM1USNIkdCcN+TQ= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1667521996302100005 Content-Type: text/plain; charset="utf-8" From: Michael Kubacki Adds the maintainers and reviewers for the new .github directory being added to hold GitHub workflows files. Cc: Andrew Fish Cc: Leif Lindholm Cc: Michael D Kinney Cc: Sean Brogan Signed-off-by: Michael Kubacki Reviewed-by: Michael D Kinney --- Maintainers.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Maintainers.txt b/Maintainers.txt index 889990fa566f..a2727fa7bd42 100644 --- a/Maintainers.txt +++ b/Maintainers.txt @@ -117,6 +117,12 @@ M: Michael Kubacki [mak= ubacki] R: Michael D Kinney [mdkinney] R: Liming Gao [lgao4] =20 +.github/ +F: .github/ +M: Sean Brogan [spbrogan] +M: Michael Kubacki [makubacki] +R: Michael D Kinney [mdkinney] + .mergify/ F: .mergify/ M: Michael D Kinney [mdkinney] --=20 2.28.0.windows.1 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#95928): https://edk2.groups.io/g/devel/message/95928 Mute This Topic: https://groups.io/mt/94796821/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- From nobody Tue May 21 19:34:34 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) client-ip=66.175.222.108; envelope-from=bounce+27952+95929+1787277+3901457@groups.io; helo=mail02.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+95929+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=linux.microsoft.com ARC-Seal: i=1; a=rsa-sha256; t=1667521998; cv=none; d=zohomail.com; s=zohoarc; b=dldlwTPMBLtjCcTqe+tEOr6PS64wmSz2fh6Esb3Rh1GQZDyeFjBPP2Z3kyAOL7Ujiqfs13iIwitxJzNt5KxzXMB0sJx7yfSKY3WX+k9Ppmdfu6cMWTzAWU1KrkoWliNeOeHoSnGkFutHTyvVU+oRO0o3oqOFb4Syn/Sv3h885u0= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1667521998; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:References:Sender:Subject:To; bh=V7A3img6qhu4k57uQZe4LkE/XUG9Av26g3l5COCCouc=; b=YmXVpEhBNhh7RBKQNfV8LguxbzgmgKu7oG/GJ/4icXEELEWgLQCLpZ+drNAEOb5oXtUS1tgMfhxex06ZWOXaK69y5EXL3Xx5gaRlZBy+47qdXKty4ZeyVu6dyAuskt0Q85hQBapPoMCXts863nVOebtCT33+GXFtlmmsYFhiAtk= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+95929+1787277+3901457@groups.io; dmarc=fail header.from= (p=none dis=none) Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 1667521998892430.5921675142139; Thu, 3 Nov 2022 17:33:18 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id KeQXYY1788612xe86jbYyTzp; Thu, 03 Nov 2022 17:33:17 -0700 X-Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by mx.groups.io with SMTP id smtpd.web11.5972.1667521997081489734 for ; Thu, 03 Nov 2022 17:33:17 -0700 X-Received: from localhost.localdomain (unknown [47.201.8.94]) by linux.microsoft.com (Postfix) with ESMTPSA id 3C0C720C28B1; Thu, 3 Nov 2022 17:33:16 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 3C0C720C28B1 From: "Michael Kubacki" To: devel@edk2.groups.io Cc: Sean Brogan , Michael D Kinney , Liming Gao Subject: [edk2-devel] [PATCH v3 2/2] .github: Add initial CodeQL config and workflow files Date: Thu, 3 Nov 2022 20:32:35 -0400 Message-Id: <20221104003235.2429-3-mikuback@linux.microsoft.com> In-Reply-To: <20221104003235.2429-1-mikuback@linux.microsoft.com> References: <20221104003235.2429-1-mikuback@linux.microsoft.com> MIME-Version: 1.0 Precedence: Bulk List-Unsubscribe: List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,mikuback@linux.microsoft.com X-Gm-Message-State: GKzPgpQIYMQN8GFJCC0RSn8dx1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1667521997; bh=rjqM9sq27slIYJV5TaBviI5BqXDs0uDXZczEfXSQm4c=; h=Cc:Date:From:Reply-To:Subject:To; b=TcDDBBNj0TCnc2D8Uxe+2IcrdZAMr4Luh33FBoQFYoR7nGXFvcJEem998cWE9jE1KoC K6pUO3HPAPf+e/m2weMLoU2/kPNtXkwCDxl7xBzjZXP9W3yhcTQ1MlytRg/dmLRGLIdbt SqiURk5V6IotXMuVRF4kgueofi5CoUdVtCE= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1667522000323100001 Content-Type: text/plain; charset="utf-8" From: Michael Kubacki REF:https://bugzilla.tianocore.org/show_bug.cgi?id=3D4115 Adds initial support for enabling CodeQL Code Scanning in this repository per the RFC: https://github.com/tianocore/edk2/discussions/3258 Adds the following new files: - .github/workflows/codql-analysis.yml - The main GitHub workflow file used to setup CodeQL in the repo. - .github/codeql/codeql-config.yml - The main CodeQL configuration file used to customize the queries and other resources the repo is using for CodeQL. Cc: Sean Brogan Cc: Michael D Kinney Cc: Liming Gao Signed-off-by: Michael Kubacki Reviewed-by: Michael D Kinney --- .github/codeql/codeql-config.yml | 30 +++++++ .github/codeql/edk2.qls | 12 +++ .github/workflows/codeql-analysis.yml | 91 ++++++++++++++++++++ 3 files changed, 133 insertions(+) diff --git a/.github/codeql/codeql-config.yml b/.github/codeql/codeql-confi= g.yml new file mode 100644 index 000000000000..3e27c2fb0d28 --- /dev/null +++ b/.github/codeql/codeql-config.yml @@ -0,0 +1,30 @@ +## @file +# CodeQL configuration file for edk2. +# +# Copyright (c) Microsoft Corporation. +# SPDX-License-Identifier: BSD-2-Clause-Patent +## + +name: "CodeQL config" + +# The following line disables the default queries. This is used because we= want to enable on query at a time by +# explicitly specifying each query in a "queries" array as they are enable= d. +# +# See the following for more information about adding custom queries: +# https://docs.github.com/en/code-security/code-scanning/automatically-sca= nning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#us= ing-a-custom-configuration-file + +#disable-default-queries: true + +queries: + - name: EDK2 CodeQL Query List + uses: ./.github/codeql/edk2.qls + +# We must specify a query for CodeQL to run. Until the first query is enab= led, enable the security query suite but +# exclude all problem levels from impacting the results. After the first q= uery is enabled, this filter can be relaxed +# to find the level of problems desired from the query. +query-filters: +- exclude: + problem.severity: + - error + - warning + - recommendation diff --git a/.github/codeql/edk2.qls b/.github/codeql/edk2.qls new file mode 100644 index 000000000000..0efc7dca52db --- /dev/null +++ b/.github/codeql/edk2.qls @@ -0,0 +1,12 @@ +--- +- description: EDK2 (C++) queries + +# Bring in all queries from the official cpp-queries suite so individual q= ueries can be explicitly enabled. + +- queries: '.' + from: codeql/cpp-queries + +# Enable individual queries below. + +- include: + id: cpp/conditionallyuninitializedvariable diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/code= ql-analysis.yml new file mode 100644 index 000000000000..2eacb9c9e1a1 --- /dev/null +++ b/.github/workflows/codeql-analysis.yml @@ -0,0 +1,91 @@ +# @file +# GitHub Workflow for CodeQL Analysis +# +# Copyright (c) Microsoft Corporation. +# +# SPDX-License-Identifier: BSD-2-Clause-Patent +## + +name: "CodeQL" + +on: + push: + branches: + - master + pull_request: + branches: + - master + paths-ignore: + - '**/*.bat' + - '**/*.md' + - '**/*.py' + - '**/*.rst' + - '**/*.sh' + - '**/*.txt' + + schedule: + # https://crontab.guru/#20_23_*_*_4 + - cron: '20 23 * * 4' + +jobs: + analyze: + name: Analyze + runs-on: windows-2019 + permissions: + actions: read + contents: read + security-events: write + + strategy: + fail-fast: false + matrix: + package: [ + "ArmPkg", + "CryptoPkg", + "DynamicTablesPkg", + "FatPkg", + "FmpDevicePkg", + "IntelFsp2Pkg", + "IntelFsp2WrapperPkg", + "MdeModulePkg", + "MdePkg", + "PcAtChipsetPkg", + "PrmPkg", + "SecurityPkg", + "ShellPkg", + "SourceLevelDebugPkg", + "StandaloneMmPkg", + "UefiCpuPkg", + "UnitTestFrameworkPkg"] + + steps: + - name: Checkout repository + uses: actions/checkout@v3 + + # Initializes the CodeQL tools for scanning. + - name: Initialize CodeQL + uses: github/codeql-action/init@v2 + with: + languages: 'cpp' + # CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', '= python', 'ruby' ] + # Learn more about CodeQL language support at https://codeql.githu= b.com/docs/codeql-overview/supported-languages-and-frameworks/ + config-file: ./.github/codeql/codeql-config.yml + # Note: Add new queries to codeql-config.yml file as they are enab= led. + + - name: Install/Upgrade pip Modules + run: pip install -r pip-requirements.txt --upgrade + + - name: Setup + run: stuart_setup -c .pytool/CISettings.py -t DEBUG -a IA32,X64 TOOL= _CHAIN_TAG=3DVS2019 + + - name: Update + run: stuart_update -c .pytool/CISettings.py -t DEBUG -a IA32,X64 TOO= L_CHAIN_TAG=3DVS2019 + + - name: Build Tools From Source + run: python BaseTools/Edk2ToolsBuild.py -t VS2019 + + - name: CI Build + run: stuart_ci_build -c .pytool/CISettings.py -p ${{ matrix.package = }} -t DEBUG -a IA32,X64 TOOL_CHAIN_TAG=3DVS2019 + + - name: Perform CodeQL Analysis + uses: github/codeql-action/analyze@v2 --=20 2.28.0.windows.1 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#95929): https://edk2.groups.io/g/devel/message/95929 Mute This Topic: https://groups.io/mt/94796823/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-