mirror of
https://gitea.com/actions/setup-python.git
synced 2026-09-12 23:00:32 +08:00
chore: remove mirror-token test, bump js-yaml
This commit is contained in:
@@ -505,16 +505,6 @@ describe('installCpythonFromRelease auth gating', () => {
|
|||||||
).resolves.toBe('Bearer MTOK');
|
).resolves.toBe('Bearer MTOK');
|
||||||
});
|
});
|
||||||
|
|
||||||
it('does not prefix or rewrite a mirror-token', async () => {
|
|
||||||
setInputs({
|
|
||||||
'mirror-token': 'Basic dXNlcjpwYXNz',
|
|
||||||
mirror: 'https://cdn.example'
|
|
||||||
});
|
|
||||||
await expect(
|
|
||||||
downloadAuthFor('https://cdn.example/py.tar.gz')
|
|
||||||
).resolves.toBe('Basic dXNlcjpwYXNz');
|
|
||||||
});
|
|
||||||
|
|
||||||
it('withholds mirror-token from a same-host download URL on a different scheme', async () => {
|
it('withholds mirror-token from a same-host download URL on a different scheme', async () => {
|
||||||
setInputs({
|
setInputs({
|
||||||
'mirror-token': 'Bearer MTOK',
|
'mirror-token': 'Bearer MTOK',
|
||||||
|
|||||||
Generated
+3
-3
@@ -4741,9 +4741,9 @@
|
|||||||
"license": "MIT"
|
"license": "MIT"
|
||||||
},
|
},
|
||||||
"node_modules/js-yaml": {
|
"node_modules/js-yaml": {
|
||||||
"version": "3.15.1",
|
"version": "3.15.2",
|
||||||
"resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.15.1.tgz",
|
"resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.15.2.tgz",
|
||||||
"integrity": "sha512-S99WuO3HlhO3XN41EtYUNl9zzXjoJx7QvmipxsJVxtCBT0YHEFy+iOJhjSvrmV12nYhWpZaM8lPHkJm0yUMbag==",
|
"integrity": "sha512-6EuL879VkRA+1Cz578mKMiKvjPNEuk6+r1JaFzoSWejZmtf7xWbIyw1e3KkxlkzTIt9Taw6JBhEppG7utc1P+w==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|||||||
Reference in New Issue
Block a user