[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v3] codeql: add support for analyzing C, Python and Go
- To: xen-devel@xxxxxxxxxxxxxxxxxxxx
- From: Roger Pau Monné <roger.pau@xxxxxxxxxx>
- Date: Thu, 28 Apr 2022 11:43:39 +0200
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=citrix.com; dmarc=pass action=none header.from=citrix.com; dkim=pass header.d=citrix.com; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=8gWzR/IKeJIEeqZ3Yxc4xmIEDHyeoCQY5xg7JAqb7Pw=; b=bTUwQYm7vUA0v9ptEt9jxl7o7h+qZ/mp/+FulKUI/FRhT/nMqapNMxP8JNo0pDHnOs8/Or0dw/W1PHnZBkC5uZlxuFumtD9/symjVsiaXQ8vQzxZIh1G89QNLye+p8HxK/sGRS1PPFoFfjX7pkKYDLYpj4nPMX0Ipxmt/vdzQAo/9WrTTOnKgeYRNyvfRQEm6brLJkMMbad42ijJjT/vrHI+iIT2TZsersvog6mwKU9pdIVdwT2Ufdz/3vAMEB+bEWFaf+Z65MR/8hP9vaUqs5EazR1MiUVxJCtQNhAJiabKdwDp9uwerUa+N5wn4VQ7I4e9Um0EUf9nLiY0RbD15Q==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=EkRtr4zK6erKBtg/jrjMGK0l9YX8o5ymZUVsw4pLqvr0w+YJBtG4Cc7RUCN/ZjUwqP2vHH0t07OvS6lXnyKf8OjyqE7zYfswgPDkiN9B27TE/xClCdwktq+PZ2CwieQF3JKZI+ajehW311ei+OhiNkQ9dSOQxn8/laO8yegukR2zoro8CVfYIlC8wbYsn21Oix8ZGVxhpfh5a5ya7xSQ+p8BQqPNtdLdw4tkUPfZf+5GzQDg99V2Rjza+pPdJ7n8HSX/9mDj4IiQaTqXI9/EoMTu3Zb0P8Qgo7NHaA0YYZbZI96aRqn7Smh97f0deoJVyXan/gPMh4gECmqF5WU5Eg==
- Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=citrix.com;
- Cc: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, George Dunlap <george.dunlap@xxxxxxxxxx>, Jan Beulich <jbeulich@xxxxxxxx>, Julien Grall <julien@xxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Wei Liu <wl@xxxxxxx>
- Delivery-date: Thu, 28 Apr 2022 09:43:57 +0000
- Ironport-data: A9a23:UbBr4KKIwBX8b7a4FE+RzJQlxSXFcZb7ZxGr2PjKsXjdYENS1TcAx 2YWCm6EOK3eMDCkc9B0aoy2pEoHupDTzoNjTldlqX01Q3x08seUXt7xwmUcns+xwm8vaGo9s q3yv/GZdJhcokf0/0vrav67xZVF/fngqoDUUYYoAQgsA148IMsdoUg7wbRh3tQ42YHR7z6l4 rseneWOYDdJ5BYsWo4kw/rrRMRH5amaVJsw5zTSVNgT1LPsvyB94KE3fMldG0DQUIhMdtNWc s6YpF2PEsE1yD92Yj+tuu6TnkTn2dc+NyDW4pZdc/DKbhSvOkXee0v0XRYRQR4/ttmHozx+4 MVo7ZrrEB8RBaPRsfkESygGLCVGGIQTrdcrIVDn2SCS52vvViK2htBRVgQxN4Be/ftrC2ZT8 /BeMCoKch2Im+OxxvS8V/VogcMgasLsOevzuFk5lW2fUalgH86FH/+iCdxwhV/cguhUGvnTf YwBYCdHZxXceRxffFwQDfrSmc/33iClKmQA9Tp5o4JuuEvL8BR3iYPpD/b5S+eze5hkk2WX8 zeuE2PRR0ty2Mak4SqI9Degi/HCmQv/WZkOD/uo+/hymlqRy2cPThoMWjOTo/O0l0q/UNJ3M FEP92wlqq1a3E62StjwWTWorXjCuQQTM/JLCPEz4gyJzqvS4i6aC3ICQzoHb8Yp3OcpQRQ62 1nPmMnmbQGDq5WQQHOZs7KL9zW7PHFPKXdYPXNeCwwY/9PkvYc/yArVScpuG7K0iduzHizsx zeNr241gLB7YdM36phXNGvv21qEzqUlhCZvjukLdgpJNj9EWbM=
- Ironport-hdrordr: A9a23:nVJblqGeR2sCbn2gpLqFepHXdLJyesId70hD6qkvc3Fom52j/f xGws5x6faVslkssb8b6LW90Y27MAvhHPlOkPIs1NaZLXDbUQ6TQL2KgrGD/9SNIVycygcZ79 YbT0EcMqyOMbEZt7ec3ODQKb9Jrri6GeKT9IHjJh9WPH1XgspbnmNE42igYy9LrF4sP+tFKH PQ3LsPmxOQPVAsKuirDHgMWObO4/XNiZLdeBYDQzoq8hOHgz+E4KPzV0Hw5GZUbxp/hZMZtU TVmQ3w4auu99m91x/nzmfWq7BbgsHoxNdvDNGFzuIVNjLvoAC1Y5kJYczLgBkF5MWUrHo6mt jFpBkte+x19nPqZ2mw5SDg3gHxuQxen0PK+Bu9uz/OsMb5TDU1B45qnoRCaCbU7EImoZVVzL 9L93jxjesZMTrw2ADGo/TYXRBjkUS55VA4l/QIsnBZWYwCLJdMsI0k+l9PGptoJlO31GkeKp guMCjg3ocXTbvDBEqp/VWHgebcE0jbJy32DHTr4aeuonprdHMQ9Tps+CVQpAZEyHsHceg02w 31CNUXqFhwdL5nUUtcPpZ3fSLlMB26ffrzWFjiUmjPJeUgB0/njaLRzfEc2NyKEaZ4vqfa3q 6xGm9liQ==
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
Ping?
On Wed, Mar 23, 2022 at 11:18:56AM +0100, Roger Pau Monne wrote:
> Introduce CodeQL support for Xen and analyze the C, Python and Go
> files.
>
> Note than when analyzing Python or Go we avoid building the hypervisor
> and only build the tools.
>
> Requested-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
> Signed-off-by: Roger Pau Monné <roger.pau@xxxxxxxxxx>
> ---
> Changes since v2:
> - Remove explicit 'staging' branch checkout.
> - Remove explicit query.
> - Remove ignored paths.
> - Remove 'on schedule' trigger, or else it would be run against the
> master branch instead of staging.
>
> Changes since v1:
> - Rename to note it's x86 specific right now.
> - Merge the ignored path patch.
> ---
> .github/workflows/codeql-x86.yml | 54 ++++++++++++++++++++++++++++++++
> 1 file changed, 54 insertions(+)
> create mode 100644 .github/workflows/codeql-x86.yml
>
> diff --git a/.github/workflows/codeql-x86.yml
> b/.github/workflows/codeql-x86.yml
> new file mode 100644
> index 0000000000..6ddd445c79
> --- /dev/null
> +++ b/.github/workflows/codeql-x86.yml
> @@ -0,0 +1,54 @@
> +name: CodeQL x86
> +
> +on:
> + workflow_dispatch:
> + push:
> + branches: [staging]
> +
> +jobs:
> + analyse:
> +
> + strategy:
> + matrix:
> + language: [ 'cpp', 'python', 'go' ]
> +
> + runs-on: ubuntu-latest
> +
> + steps:
> + - name: Install build dependencies
> + run: |
> + sudo apt-get install -y wget git \
> + libbz2-dev build-essential \
> + zlib1g-dev libncurses5-dev iasl \
> + libbz2-dev e2fslibs-dev uuid-dev libyajl-dev \
> + autoconf libtool liblzma-dev \
> + python3-dev golang python-dev libsystemd-dev
> +
> + - uses: actions/checkout@v2
> +
> + - name: Configure Xen
> + run: |
> + ./configure --with-system-qemu=/bin/true \
> + --with-system-seabios=/bin/true \
> + --with-system-ovmf=/bin/true
> +
> + - name: Pre build stuff
> + run: |
> + make -j`nproc` mini-os-dir
> +
> + - uses: github/codeql-action/init@v1
> + with:
> + languages: ${{matrix.language}}
> +
> + - if: matrix.language == 'cpp'
> + name: Full Build
> + run: |
> + make -j`nproc` build-xen build-tools
> + make -j`nproc` -C extras/mini-os/
> +
> + - if: matrix.language == 'python' || matrix.language == 'go'
> + name: Tools Build
> + run: |
> + make -j`nproc` build-tools
> +
> + - uses: github/codeql-action/analyze@v1
> --
> 2.35.1
>
|