mirror of
https://github.com/astral-sh/setup-uv.git
synced 2026-06-10 14:42:22 +00:00
Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| ed73b5df24 |
@@ -47,7 +47,7 @@ jobs:
|
|||||||
|
|
||||||
# Initializes the CodeQL tools for scanning.
|
# Initializes the CodeQL tools for scanning.
|
||||||
- name: Initialize CodeQL
|
- name: Initialize CodeQL
|
||||||
uses: github/codeql-action/init@87557b9c84dde89fdd9b10e88954ac2f4248e463 # v4.36.1
|
uses: github/codeql-action/init@7211b7c8077ea37d8641b6271f6a365a22a5fbfa # v4.36.0
|
||||||
with:
|
with:
|
||||||
languages: ${{ matrix.language }}
|
languages: ${{ matrix.language }}
|
||||||
source-root: src
|
source-root: src
|
||||||
@@ -59,7 +59,7 @@ jobs:
|
|||||||
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
|
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
|
||||||
# If this step fails, then you should remove it and run the build manually (see below)
|
# If this step fails, then you should remove it and run the build manually (see below)
|
||||||
- name: Autobuild
|
- name: Autobuild
|
||||||
uses: github/codeql-action/autobuild@87557b9c84dde89fdd9b10e88954ac2f4248e463 # v4.36.1
|
uses: github/codeql-action/autobuild@7211b7c8077ea37d8641b6271f6a365a22a5fbfa # v4.36.0
|
||||||
|
|
||||||
# ℹ️ Command-line programs to run using the OS shell.
|
# ℹ️ Command-line programs to run using the OS shell.
|
||||||
# 📚 https://git.io/JvXDl
|
# 📚 https://git.io/JvXDl
|
||||||
@@ -73,4 +73,4 @@ jobs:
|
|||||||
# make release
|
# make release
|
||||||
|
|
||||||
- name: Perform CodeQL Analysis
|
- name: Perform CodeQL Analysis
|
||||||
uses: github/codeql-action/analyze@87557b9c84dde89fdd9b10e88954ac2f4248e463 # v4.36.1
|
uses: github/codeql-action/analyze@7211b7c8077ea37d8641b6271f6a365a22a5fbfa # v4.36.0
|
||||||
|
|||||||
+4
@@ -91160,12 +91160,16 @@ function getLinuxOSNameVersion() {
|
|||||||
const id = parseOsReleaseValue(content, "ID");
|
const id = parseOsReleaseValue(content, "ID");
|
||||||
const versionId2 = parseOsReleaseValue(content, "VERSION_ID");
|
const versionId2 = parseOsReleaseValue(content, "VERSION_ID");
|
||||||
const versionCodename = parseOsReleaseValue(content, "VERSION_CODENAME");
|
const versionCodename = parseOsReleaseValue(content, "VERSION_CODENAME");
|
||||||
|
const buildId = parseOsReleaseValue(content, "BUILD_ID");
|
||||||
if (id && versionId2) {
|
if (id && versionId2) {
|
||||||
return `${id}-${versionId2}`;
|
return `${id}-${versionId2}`;
|
||||||
}
|
}
|
||||||
if (id && versionCodename) {
|
if (id && versionCodename) {
|
||||||
return `${id}-${versionCodename}`;
|
return `${id}-${versionCodename}`;
|
||||||
}
|
}
|
||||||
|
if (id && buildId) {
|
||||||
|
return `${id}-${buildId}`;
|
||||||
|
}
|
||||||
} catch {
|
} catch {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -109,8 +109,9 @@ function getLinuxOSNameVersion(): string {
|
|||||||
const id = parseOsReleaseValue(content, "ID");
|
const id = parseOsReleaseValue(content, "ID");
|
||||||
const versionId = parseOsReleaseValue(content, "VERSION_ID");
|
const versionId = parseOsReleaseValue(content, "VERSION_ID");
|
||||||
// Fallback for rolling releases (debian:unstable/testing, arch, etc.)
|
// Fallback for rolling releases (debian:unstable/testing, arch, etc.)
|
||||||
// that don't have VERSION_ID but have VERSION_CODENAME
|
// that don't have VERSION_ID but have VERSION_CODENAME or BUILD_ID
|
||||||
const versionCodename = parseOsReleaseValue(content, "VERSION_CODENAME");
|
const versionCodename = parseOsReleaseValue(content, "VERSION_CODENAME");
|
||||||
|
const buildId = parseOsReleaseValue(content, "BUILD_ID");
|
||||||
|
|
||||||
if (id && versionId) {
|
if (id && versionId) {
|
||||||
return `${id}-${versionId}`;
|
return `${id}-${versionId}`;
|
||||||
@@ -118,6 +119,9 @@ function getLinuxOSNameVersion(): string {
|
|||||||
if (id && versionCodename) {
|
if (id && versionCodename) {
|
||||||
return `${id}-${versionCodename}`;
|
return `${id}-${versionCodename}`;
|
||||||
}
|
}
|
||||||
|
if (id && buildId) {
|
||||||
|
return `${id}-${buildId}`;
|
||||||
|
}
|
||||||
} catch {
|
} catch {
|
||||||
// Try next file
|
// Try next file
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user