mirror of
https://github.com/actions/setup-java.git
synced 2026-06-20 08:18:18 +01:00
Compare commits
1 Commits
brunoborge
...
dependabot
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
380cff91f7 |
4
.github/workflows/codeql-analysis.yml
vendored
4
.github/workflows/codeql-analysis.yml
vendored
@@ -10,9 +10,5 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
call-codeQL-analysis:
|
call-codeQL-analysis:
|
||||||
permissions:
|
|
||||||
actions: read
|
|
||||||
contents: read
|
|
||||||
security-events: write
|
|
||||||
name: CodeQL analysis
|
name: CodeQL analysis
|
||||||
uses: actions/reusable-workflows/.github/workflows/codeql-analysis.yml@main
|
uses: actions/reusable-workflows/.github/workflows/codeql-analysis.yml@main
|
||||||
|
|||||||
@@ -29,11 +29,7 @@ describe('isVersionSatisfies', () => {
|
|||||||
['2.5.1+3', '2.5.1+3', true],
|
['2.5.1+3', '2.5.1+3', true],
|
||||||
['2.5.1+3', '2.5.1+2', false],
|
['2.5.1+3', '2.5.1+2', false],
|
||||||
['15.0.0+14', '15.0.0+14.1.202003190635', false],
|
['15.0.0+14', '15.0.0+14.1.202003190635', false],
|
||||||
['15.0.0+14.1.202003190635', '15.0.0+14.1.202003190635', true],
|
['15.0.0+14.1.202003190635', '15.0.0+14.1.202003190635', true]
|
||||||
// 4-segment versions (e.g. JetBrains Runtime '17.0.8.1+1080.1') are not
|
|
||||||
// valid semver — they should be rejected, not throw.
|
|
||||||
['25.0.3+480.61', '17.0.8.1+1080.1', false],
|
|
||||||
['17', '17.0.8.1+1080.1', false]
|
|
||||||
])(
|
])(
|
||||||
'%s, %s -> %s',
|
'%s, %s -> %s',
|
||||||
(inputRange: string, inputVersion: string, expected: boolean) => {
|
(inputRange: string, inputVersion: string, expected: boolean) => {
|
||||||
|
|||||||
7
dist/cleanup/index.js
vendored
7
dist/cleanup/index.js
vendored
@@ -52208,13 +52208,6 @@ function getDownloadArchiveExtension() {
|
|||||||
exports.getDownloadArchiveExtension = getDownloadArchiveExtension;
|
exports.getDownloadArchiveExtension = getDownloadArchiveExtension;
|
||||||
function isVersionSatisfies(range, version) {
|
function isVersionSatisfies(range, version) {
|
||||||
var _a;
|
var _a;
|
||||||
// Some distributions (e.g. JetBrains Runtime) publish 4-segment versions
|
|
||||||
// like '17.0.8.1+1080.1' that semver rejects. If the candidate version
|
|
||||||
// isn't valid semver, it can't match — bail out rather than letting
|
|
||||||
// compareBuild / satisfies throw.
|
|
||||||
if (!semver.valid(version)) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
if (semver.valid(range)) {
|
if (semver.valid(range)) {
|
||||||
// if full version with build digit is provided as a range (such as '1.2.3+4')
|
// if full version with build digit is provided as a range (such as '1.2.3+4')
|
||||||
// we should check for exact equal via compareBuild
|
// we should check for exact equal via compareBuild
|
||||||
|
|||||||
7
dist/setup/index.js
vendored
7
dist/setup/index.js
vendored
@@ -81039,13 +81039,6 @@ function getDownloadArchiveExtension() {
|
|||||||
exports.getDownloadArchiveExtension = getDownloadArchiveExtension;
|
exports.getDownloadArchiveExtension = getDownloadArchiveExtension;
|
||||||
function isVersionSatisfies(range, version) {
|
function isVersionSatisfies(range, version) {
|
||||||
var _a;
|
var _a;
|
||||||
// Some distributions (e.g. JetBrains Runtime) publish 4-segment versions
|
|
||||||
// like '17.0.8.1+1080.1' that semver rejects. If the candidate version
|
|
||||||
// isn't valid semver, it can't match — bail out rather than letting
|
|
||||||
// compareBuild / satisfies throw.
|
|
||||||
if (!semver.valid(version)) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
if (semver.valid(range)) {
|
if (semver.valid(range)) {
|
||||||
// if full version with build digit is provided as a range (such as '1.2.3+4')
|
// if full version with build digit is provided as a range (such as '1.2.3+4')
|
||||||
// we should check for exact equal via compareBuild
|
// we should check for exact equal via compareBuild
|
||||||
|
|||||||
@@ -6,13 +6,13 @@ We have prepared a short guide so that the process of making your contribution i
|
|||||||
|
|
||||||
## How can I contribute...
|
## How can I contribute...
|
||||||
|
|
||||||
* [:green_book: Contribute Documentation](#contribute-documentation)
|
* [Contribute Documentation:green_book:](#contribute-documentation)
|
||||||
|
|
||||||
* [:computer: Contribute Code](#contribute-code)
|
* [Contribute Code :computer:](#contribute-code)
|
||||||
|
|
||||||
* [:pencil: Provide Support on Issues](#provide-support-on-issues)
|
* [Provide Support on Issues:pencil:](#provide-support-on-issues)
|
||||||
|
|
||||||
* [:mag: Review Pull Requests](#review-pull-requests)
|
* [Review Pull Requests:mag:](#review-pull-requests)
|
||||||
|
|
||||||
## Contribute documentation
|
## Contribute documentation
|
||||||
|
|
||||||
@@ -111,4 +111,4 @@ Another great way to contribute is is to review pull request. Please, be extra k
|
|||||||
- Make sure you're familiar with the code or documentation is updated, unless it's a minor change (spellchecking, minor formatting, etc.)
|
- Make sure you're familiar with the code or documentation is updated, unless it's a minor change (spellchecking, minor formatting, etc.)
|
||||||
- Review changes using the GitHub functionality. You can ask a clarifying question, point out an error or suggest an alternative.
|
- Review changes using the GitHub functionality. You can ask a clarifying question, point out an error or suggest an alternative.
|
||||||
> Note: You may ask for minor changes - "nitpicks", but consider whether they are real blockers to merging or not
|
> Note: You may ask for minor changes - "nitpicks", but consider whether they are real blockers to merging or not
|
||||||
- Submit your review, which may include comments, an approval, or a changes request
|
- Submit your review, which may include comments, an approval, or a changes request
|
||||||
917
package-lock.json
generated
917
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -46,7 +46,7 @@
|
|||||||
"@typescript-eslint/eslint-plugin": "^8.48.0",
|
"@typescript-eslint/eslint-plugin": "^8.48.0",
|
||||||
"@typescript-eslint/parser": "^8.61.1",
|
"@typescript-eslint/parser": "^8.61.1",
|
||||||
"@vercel/ncc": "^0.44.0",
|
"@vercel/ncc": "^0.44.0",
|
||||||
"eslint": "^8.57.0",
|
"eslint": "^10.5.0",
|
||||||
"eslint-config-prettier": "^10.1.8",
|
"eslint-config-prettier": "^10.1.8",
|
||||||
"eslint-plugin-jest": "^29.0.1",
|
"eslint-plugin-jest": "^29.0.1",
|
||||||
"eslint-plugin-node": "^11.1.0",
|
"eslint-plugin-node": "^11.1.0",
|
||||||
|
|||||||
@@ -55,14 +55,6 @@ export function getDownloadArchiveExtension() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export function isVersionSatisfies(range: string, version: string): boolean {
|
export function isVersionSatisfies(range: string, version: string): boolean {
|
||||||
// Some distributions (e.g. JetBrains Runtime) publish 4-segment versions
|
|
||||||
// like '17.0.8.1+1080.1' that semver rejects. If the candidate version
|
|
||||||
// isn't valid semver, it can't match — bail out rather than letting
|
|
||||||
// compareBuild / satisfies throw.
|
|
||||||
if (!semver.valid(version)) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (semver.valid(range)) {
|
if (semver.valid(range)) {
|
||||||
// if full version with build digit is provided as a range (such as '1.2.3+4')
|
// if full version with build digit is provided as a range (such as '1.2.3+4')
|
||||||
// we should check for exact equal via compareBuild
|
// we should check for exact equal via compareBuild
|
||||||
|
|||||||
Reference in New Issue
Block a user