mirror of
https://github.com/github/codeql-action.git
synced 2026-10-03 17:41:28 +00:00
Merge pull request #4123 from github/redsun82-address-pr-4072-comments
Analyze all supported languages in the Linux Arm64 check
This commit is contained in:
26
.github/workflows/__linux-arm64.yml
generated
vendored
26
.github/workflows/__linux-arm64.yml
generated
vendored
@@ -20,6 +20,11 @@ on:
|
|||||||
- cron: '0 5 * * *'
|
- cron: '0 5 * * *'
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
inputs:
|
inputs:
|
||||||
|
dotnet-version:
|
||||||
|
type: string
|
||||||
|
description: The version of .NET to install
|
||||||
|
required: false
|
||||||
|
default: 9.x
|
||||||
go-version:
|
go-version:
|
||||||
type: string
|
type: string
|
||||||
description: The version of Go to install
|
description: The version of Go to install
|
||||||
@@ -27,6 +32,11 @@ on:
|
|||||||
default: '>=1.21.0'
|
default: '>=1.21.0'
|
||||||
workflow_call:
|
workflow_call:
|
||||||
inputs:
|
inputs:
|
||||||
|
dotnet-version:
|
||||||
|
type: string
|
||||||
|
description: The version of .NET to install
|
||||||
|
required: false
|
||||||
|
default: 9.x
|
||||||
go-version:
|
go-version:
|
||||||
type: string
|
type: string
|
||||||
description: The version of Go to install
|
description: The version of Go to install
|
||||||
@@ -37,7 +47,7 @@ defaults:
|
|||||||
shell: bash
|
shell: bash
|
||||||
concurrency:
|
concurrency:
|
||||||
cancel-in-progress: ${{ github.event_name == 'pull_request' || false }}
|
cancel-in-progress: ${{ github.event_name == 'pull_request' || false }}
|
||||||
group: linux-arm64-${{github.ref}}-${{inputs.go-version}}
|
group: linux-arm64-${{github.ref}}-${{inputs.dotnet-version}}-${{inputs.go-version}}
|
||||||
jobs:
|
jobs:
|
||||||
linux-arm64:
|
linux-arm64:
|
||||||
strategy:
|
strategy:
|
||||||
@@ -56,6 +66,10 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Check out repository
|
- name: Check out repository
|
||||||
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
||||||
|
- name: Install .NET
|
||||||
|
uses: actions/setup-dotnet@a98b56852c35b8e3190ac28c8c2271da59106c68 # v6.0.0
|
||||||
|
with:
|
||||||
|
dotnet-version: ${{ inputs.dotnet-version || '9.x' }}
|
||||||
- name: Install Go
|
- name: Install Go
|
||||||
uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
|
uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
|
||||||
with:
|
with:
|
||||||
@@ -70,21 +84,23 @@ jobs:
|
|||||||
setup-kotlin: 'true'
|
setup-kotlin: 'true'
|
||||||
- uses: ./../action/init
|
- uses: ./../action/init
|
||||||
with:
|
with:
|
||||||
languages: javascript,python,go
|
languages: ${{ env.LANGUAGES }}
|
||||||
tools: ${{ steps.prepare-test.outputs.tools-url }}
|
tools: ${{ steps.prepare-test.outputs.tools-url }}
|
||||||
- name: Build Go code
|
- name: Build code
|
||||||
run: go build main.go
|
run: ./build.sh
|
||||||
- uses: ./../action/analyze
|
- uses: ./../action/analyze
|
||||||
with:
|
with:
|
||||||
upload-database: false
|
upload-database: false
|
||||||
- name: Assert databases exist
|
- name: Assert databases exist
|
||||||
run: |
|
run: |
|
||||||
cd "$RUNNER_TEMP/codeql_databases"
|
cd "$RUNNER_TEMP/codeql_databases"
|
||||||
for lang in javascript python go; do
|
for lang in ${LANGUAGES//,/ }; do
|
||||||
if [[ ! -d "$lang" ]]; then
|
if [[ ! -d "$lang" ]]; then
|
||||||
echo "Did not find a database for $lang"
|
echo "Did not find a database for $lang"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
echo "Found database for $lang"
|
||||||
done
|
done
|
||||||
env:
|
env:
|
||||||
|
LANGUAGES: cpp,csharp,go,java,javascript,python,ruby
|
||||||
CODEQL_ACTION_TEST_MODE: true
|
CODEQL_ACTION_TEST_MODE: true
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ See the [releases page](https://github.com/github/codeql-action/releases) for th
|
|||||||
|
|
||||||
## [UNRELEASED]
|
## [UNRELEASED]
|
||||||
|
|
||||||
- The CodeQL Action now supports CodeQL releases that are compatible with Linux Arm64 and download the native `linux-arm64` CodeQL bundle when available. [#4072](https://github.com/github/codeql-action/pull/4072)
|
- The CodeQL Action now supports CodeQL releases that are compatible with Linux Arm64 and downloads the native `linux-arm64` CodeQL bundle when available. [#4072](https://github.com/github/codeql-action/pull/4072)
|
||||||
|
|
||||||
## 4.37.9 - 26 Aug 2026
|
## 4.37.9 - 26 Aug 2026
|
||||||
|
|
||||||
|
|||||||
@@ -9,22 +9,27 @@ operatingSystems:
|
|||||||
versions:
|
versions:
|
||||||
- nightly-latest
|
- nightly-latest
|
||||||
installGo: true
|
installGo: true
|
||||||
|
installDotNet: true
|
||||||
|
# The set of languages CodeQL supports on this platform, excluding Swift (macOS only).
|
||||||
|
env:
|
||||||
|
LANGUAGES: cpp,csharp,go,java,javascript,python,ruby
|
||||||
steps:
|
steps:
|
||||||
- uses: ./../action/init
|
- uses: ./../action/init
|
||||||
with:
|
with:
|
||||||
languages: javascript,python,go
|
languages: ${{ env.LANGUAGES }}
|
||||||
tools: ${{ steps.prepare-test.outputs.tools-url }}
|
tools: ${{ steps.prepare-test.outputs.tools-url }}
|
||||||
- name: Build Go code
|
- name: Build code
|
||||||
run: go build main.go
|
run: ./build.sh
|
||||||
- uses: ./../action/analyze
|
- uses: ./../action/analyze
|
||||||
with:
|
with:
|
||||||
upload-database: false
|
upload-database: false
|
||||||
- name: Assert databases exist
|
- name: Assert databases exist
|
||||||
run: |
|
run: |
|
||||||
cd "$RUNNER_TEMP/codeql_databases"
|
cd "$RUNNER_TEMP/codeql_databases"
|
||||||
for lang in javascript python go; do
|
for lang in ${LANGUAGES//,/ }; do
|
||||||
if [[ ! -d "$lang" ]]; then
|
if [[ ! -d "$lang" ]]; then
|
||||||
echo "Did not find a database for $lang"
|
echo "Did not find a database for $lang"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
echo "Found database for $lang"
|
||||||
done
|
done
|
||||||
|
|||||||
Reference in New Issue
Block a user