From nobody Sun May 5 16:33:11 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+95907+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+95907+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=linux.microsoft.com ARC-Seal: i=1; a=rsa-sha256; t=1667511762; cv=none; d=zohomail.com; s=zohoarc; b=AYEqK6pyeWW6OAvvGZeyP5/NObUC8c2kwmkazYiVTGgMkTazopULnBu8FCnW3yuBUb5D8s8Myo4hFNAWMIXMaQp6NETRIMgNxlXl8VbKG/qvUyPsHLYtlUmA1YMmvv7zY7vz5pFz/sr5hkHjMzsuLTonw99Pxb9gY2rqmbh8VtE= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1667511762; 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=Gxvui1ewpzPg5nudVeo3w3rZA+hpdMDxu7ceqatpqqY=; b=FFW6/HfI84M2/d/EKSb0vQUd7bALrm4GUj/bc5eaHmMAr/8Um3+wDE+RaiODhg++EBZWwdKgb3dI56exfS+WY+MN2o8z/QWejOsAxpQHG2cd73KnVEGmPSF9XkSoLIExp4sf/zYbPRqeFFDdjImropQ4FkdKWq+Q0zojAI7uvT8= 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+95907+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 1667511762150228.3620662579226; Thu, 3 Nov 2022 14:42:42 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id XDd3YY1788612xBM20N07gAB; Thu, 03 Nov 2022 14:42:41 -0700 X-Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by mx.groups.io with SMTP id smtpd.web11.4356.1667511761090208754 for ; Thu, 03 Nov 2022 14:42:41 -0700 X-Received: from localhost.localdomain (unknown [47.201.8.94]) by linux.microsoft.com (Postfix) with ESMTPSA id 1FB3020C28BD; Thu, 3 Nov 2022 14:42:40 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 1FB3020C28BD From: "Michael Kubacki" To: devel@edk2.groups.io Cc: Andrew Fish , Leif Lindholm , Michael D Kinney , Sean Brogan Subject: [edk2-devel] [PATCH v2 1/2] Maintainers.txt: Add .github maintainers and reviewers Date: Thu, 3 Nov 2022 17:40:29 -0400 Message-Id: <20221103214030.2218-2-mikuback@linux.microsoft.com> In-Reply-To: <20221103214030.2218-1-mikuback@linux.microsoft.com> References: <20221103214030.2218-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: lKfzdpRvXYLpepxec9pce9urx1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1667511761; bh=Gxvui1ewpzPg5nudVeo3w3rZA+hpdMDxu7ceqatpqqY=; h=Cc:Date:From:Reply-To:Subject:To; b=CJqgnDPq+YCyz6mAiovCj1u42gqhUzOHMbdiM0pofah8pbI5VkIsd5VEgzmlboZ3+cM GHYCq6lzjGLxv/cp0B9Ovv36z0Asl7Zu+LBDT/LVvF0KekfEC2B4axsqgEVWoYMM4eIss kHn/Jt35GIqZCRGyPS5GYz4wYhnSe9mUHEk= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1667511762929100001 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 (#95907): https://edk2.groups.io/g/devel/message/95907 Mute This Topic: https://groups.io/mt/94793993/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 Sun May 5 16:33:11 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+95908+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+95908+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=linux.microsoft.com ARC-Seal: i=1; a=rsa-sha256; t=1667511765; cv=none; d=zohomail.com; s=zohoarc; b=hJrpaUbqu13eDZJxmkvLF5lpHYQ7W4P/BsbynL6ySdpEx0sp3CetwCb//Z2deOjrgafcZPjpiwUksVmAvm/PgAb1ZfDxPnObwGIVyvB0kUdPfnRmoxL705Vgkv0s39iMk3CV0SIijgtJm6q7T0BDOEZg4TIvUSgBLaANjXqtrnk= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1667511765; 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=x/0DtcEhOXjWRpEQuTnakZQrKXn+6ajXJQNHx/hDYQU=; b=Fj/wguwFCWcuPVegRXq7fO0Nyp9+l7IElSaPXB3N82koDsjbnD9oLM1zXquJ5GIXeJwOTAgB3bn04ZVWM1woHFfPZpI+GT+bbfo06+lCIh9g+4/uOMuiJ48C1OpQrCNMcYFlyC1DZcFaFRGZswQwd5UdE9yHlljzoMuYNnBNHh0= 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+95908+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 1667511765357726.9660752059564; Thu, 3 Nov 2022 14:42:45 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id x2IkYY1788612xu1f9tldYD6; Thu, 03 Nov 2022 14:42:45 -0700 X-Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by mx.groups.io with SMTP id smtpd.web12.4381.1667511764250683673 for ; Thu, 03 Nov 2022 14:42:44 -0700 X-Received: from localhost.localdomain (unknown [47.201.8.94]) by linux.microsoft.com (Postfix) with ESMTPSA id 2082920C28BD; Thu, 3 Nov 2022 14:42:43 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 2082920C28BD From: "Michael Kubacki" To: devel@edk2.groups.io Cc: Sean Brogan , Michael D Kinney , Liming Gao Subject: [edk2-devel] [PATCH v2 2/2] .github: Add initial CodeQL config and workflow files Date: Thu, 3 Nov 2022 17:40:30 -0400 Message-Id: <20221103214030.2218-3-mikuback@linux.microsoft.com> In-Reply-To: <20221103214030.2218-1-mikuback@linux.microsoft.com> References: <20221103214030.2218-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: 7TUuJDuETyMMfulxxl2WvBimx1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1667511765; bh=F/jylizMnjH1/wfQe3+Zpe7tMdUObKWMqwqc7h95b4w=; h=Cc:Date:From:Reply-To:Subject:To; b=ayO64aFvWWrMpvLqBlSXgKMXrfA08Mk87RpHvqZdtoJt99AY4KQ27WBIybTDz9vN5Hv e9bj6t4xua03TmxFEPQJtRWYRZweXJiv5sdQoUev7Fmz4ZeL+WMTRWbt+xrDEtRvGyG4T xzr5S/i3X1p3ZkB4eHUkxfamUC2uJn0lUVc= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1667511766982100006 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 --- .github/codeql/codeql-config.yml | 30 ++++++ .github/codeql/edk2.qls | 12 +++ .github/workflows/codeql-analysis.yml | 99 ++++++++++++++++++++ 3 files changed, 141 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..4ab8be04ecbe --- /dev/null +++ b/.github/workflows/codeql-analysis.yml @@ -0,0 +1,99 @@ +# @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: Use Node.js 19.x + uses: actions/setup-node@v3 + with: + node-version: 19.x + + - name: Install cspell npm + run: npm install -g cspell@5.20.0 + + - 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 (#95908): https://edk2.groups.io/g/devel/message/95908 Mute This Topic: https://groups.io/mt/94793996/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-