Граф коммитов

21 Коммитов

Автор SHA1 Сообщение Дата
Ivan Duplenskikh 6fe62f7b71
Migration to CFS (#378)
* Migration to CFS
* Add .npmrc to all packages in the repository to consume packages from the internal feed.
* Change run to runAsync in L0 tests
* Add SYSTEM_DEBUG environment variable for the test command
* Add NpmAuthenticate@0 task before the installation task
* Fix indents in AppStoreRelease
2024-09-09 09:17:01 +02:00
Dmitrii Bobreshev fdce582d08
Fix CVEs (#379)
* Fix CVEs

- Removed build config from task.js
- Bumped task-lib
- Fixed tests

* print debug info always for tests
2024-09-02 13:13:30 +02:00
Maxim Zaytsev 245772b60d
Users/max zaytsev/updated tests (#371)
* Update tests

* Updated tests

---------

Co-authored-by: Kirill Ivlev <v-kivlev@microsoft.com>
2024-07-29 12:04:02 +02:00
Rule of 72 Engineering dc434e17cb
Fix issue #361: Install fastlane gem using --no-document (#362)
Save 21 seconds per pipeline run.
- Added `--no-document` to fastlane install in task IpaResign.
- Added `--no-document` to fastlane install in task AppStorePromote.
- Added `--no-document` to fastlane install in task AppStoreRelease.
2024-05-16 12:27:16 +02:00
Dmitrii Bobreshev 563acdc088
Migrate app-store tasks to Node20 (#344)
* Migrate app-store tasks to Node20

- Migrated make.js script to support Node 20
- Changed ci to use node20
- Removed unused dependencies
- Removed unreacheble code since the app-store tasks are not used make.json file

* Migrate app-store tasks to Node20

- Migrated tasks to Node20

* Migrate app-store tasks to Node20

- replaced typescript from 3.2.2 to 5.1.6 for the build process
2024-01-24 09:15:25 +01:00
Maxim Zaytsev 34e60b6ccf
Update types/node (#342) 2024-01-05 11:23:24 +01:00
Maxim Zaytsev 90f837884a
Migrate tasks to node 16 (#341) 2024-01-04 14:08:56 +01:00
Maksim Petrov 0e0e173bb3
Localization update (#320)
* Added onelocbuild files

* Update localize-pipeline.yml for Azure Pipelines

* [Localization] Update LocProject (#300)

* [Localization] Update YAML template for localization pipeline (#301)

* [Localization] Update YAML template for localization pipeline

* Update localize-pipeline.yml

* [Localization] Fix master merge stage

* Juno: check in to lego/hb_cc87903b-05a2-422a-91ac-06720ee93f74_20230303144031555. (#315)

* Juno: check in to lego/hb_cc87903b-05a2-422a-91ac-06720ee93f74_20230307122447476. (#317)

* Juno: check in to lego/hb_cc87903b-05a2-422a-91ac-06720ee93f74_20230307223738915. (#318)

* Juno: check in to lego/hb_cc87903b-05a2-422a-91ac-06720ee93f74_20230308101503625. (#319)

* Removing Localize and OneLocBuild folder

* Bump tasks and extension versions

* move ci script open-pullrequest to localization-updates folder

* Bump tasks & extension versions

---------

Co-authored-by: Anatolii Bolshakov (Akvelon INC) <v-anbols@microsoft.com>
Co-authored-by: Alex Hsu <csigs@users.noreply.github.com>
2023-03-15 13:52:47 +01:00
Maksim Petrov a6b1e26a33
Bump tasks-lib version (#311) 2023-02-17 10:49:14 +01:00
Liliia Sabitova d9eda60fba
Change sample tokens to dummy strings (#292)
Changed api keys and tokens to dummy strings so that they won't be considered as exposed secrets
2022-11-04 13:43:48 +01:00
Maxim Zaytsev 27aa70a706
Update dependencies (#279)
* Update versions

* Update extension version

* Add dev-dependencies constants

* Update contributing.md
2022-06-27 18:51:21 +03:00
Ivan Golubev 5bfd848469
Resolve vulnerabilities (#268)
* Update devDependencies

* Fix linter issues

* Remove gulp

* Revert "Remove gulp"

This reverts commit 0a6e10e88c.

Moved this change to a separate PR: #269

* replace gulp-util with plugin-error

* update tfx-cli

* bump sprint

Co-authored-by: DaniilShmelev <v-dshmelev@microsoft.com>
2022-02-28 10:11:59 +03:00
Vladislav Ryzhov c72f77f800
Update task-lib version (#249)
* Updated task-lib in AppStorePromoteTask

* Updated task-lib in AppStoreRelease task

* Updated task-lib in IpaResign task

* Update task.json

* Update task.loc.json

* Update task.json

* Update task.loc.json

* Update task.json

* Update task.loc.json

Co-authored-by: Vladislav Ryzhov <v-vryzhov@microsoft.com>
2021-06-10 09:54:52 +03:00
DaniilShmelev 43e071b080
Add restrictions to app store extension tasks (#220)
* add restrictions

* bump task versions

* bump minimum agent version

* fix wrong minimum agent version

* Bump tasks versions

Co-authored-by: Nikita Ezzhev <v-niezz@microsoft.com>
2021-04-05 16:19:16 +03:00
Johannes Fahrenkrug d47166e638
Add support for authenticating using an API key (#189)
* Add support for authenticating using an API key

This commit adds support for the App Store Connect API key authentication
method, which is the new recommended method by fastlane.

It passes new options through to the --api_key_path option of fastlane.

The options are:
apiKeyId, apiKeyIssuerId, apiKeyContent, apiKeyInHouse

(cherry picked from commit f3c49eb4377263227ae041e18e3f796847b39d21)

* App App Store Connect API Key support to ServiceEndpoint

This commits adds the ability to use the Service Endpoint to provide
API Key credentials. The "token auth" scheme was chosen because it
seems to be the closest match to what the App Store Connect API
Key is.

(cherry picked from commit 9a6c3b657de449563c552d6274bc0fe83cef58de)

* Use base64-encoded private App Store Connect API Key

Azure DevOps doesn't support multi-line string values in input fields which caused problems
with the Private Key for the App Store Connect p8 private key.

Base64-encoding the private key (which is supported by fastlane) solves this.

(cherry picked from commit a98d239d12d4159cd38bd5322990ee010f2c4b95)

* Merge branch 'master' into app_store_connect_api_key_support

(cherry picked from commit 1a5108161bbc8701bd94372ba9864af631cf19fa)

* Merge branch 'master' into app_store_connect_api_key_support

(cherry picked from commit 594948c75cdb5e5c5ef48e36dc7704c969e79283)

* Bump version number to 180.0

(cherry picked from commit e2f51247b12287f83e1887d0704db66c00cb088b)

* Merge branch 'master' into app_store_connect_api_key_support

(cherry picked from commit 991b03e6daf2df9795c53ad217e7eb21b1e40dcb)

* Resolved merging conflicts

* Change scheme value from ms.vss-endpoint.endpoint-auth-scheme-token to Token

As noted by @PeterStaev, the value should be "Token".

* Use API Key ID in filename and delete API Key file in a clean up step

To avoid any conflicts, we now use the API Key ID to construct the name of the
API Key JSON file, and we save it inside of `Agent.BuildDirectory` or
`Agent.TempDirectory`.
By default, the API Key JSON file will be deleted after its use. That should
be much safer. Using the `DEBUG_API_KEY_FILE` environment variable keeps it
from being deleted. We use that env var for testing so we can verify that the
file has been created with the correct content.

* fix tests failing on windows

* fix deprecated mocha types

* Change 'apiKeyContent' to 'apitoken' to avoid duplicate field in ADO UI

When using a service endpoint auth type with the new API key, the ADO UI
adds an unused "API Token" field alongside our "API Key Content" field.
As suggested by @PeterStaev, it's better to reuse the "apitoken" field name
with our task-specific labels instead of adding our own field. That reuses
the "apitoken" field that ADO adds anyway, but displays it with our labels.

* fix invalid precheck for in app purchases

* add message about precheck for in app purchases

* Ensure API Key tests clean up api_key.json test files reliably

Since we were cleaning up at the end of the tests, the clean up didn't
happen when an assertion before it failed. That left an api_key.json
file on disk. Now we read the file first and clean up right away.

* apply deliver precheck fix for AppStoreRelease too

* fix service endpoint values for better secret masking

Agent's secret masker assumes that every service endpoint parameter is a secret, so if  'true' and 'false' are used as endpoint values, every 'true' and 'false' string in the logs of the job will be replaced with '***'

* Change `apiKeyFileName` to `apiKeyFilePath` and prefer Agent.TempDirectory

As per @egor-bryzgalov's code review, I've changed the name of the variable
holding the path to the API Key file to make it clearer that it's not just
the file *name*.

Also change where the file is saved on disk: Prefer Agent.TempDirectory
to Agent.BuildDirectory. This required some changes to the tests, since
the system also writes a `.taskkey` file into the temp dir, which we need
to clean up in order to delete the temp directory we had to create for
testing.

Co-authored-by: Egor Bryzgalov <v-egbryz@microsoft.com>
Co-authored-by: DaniilShmelev <daniil.shmelev@akvelon.com>
2021-02-16 11:20:59 +03:00
Maxim Zaytsev 4c9c89d2f7
fix task version (#211) 2021-02-02 19:35:43 +03:00
Maxim Zaytsev fbdda74438
[app-store-promote] Migrated to Node 10 (#204) 2021-02-02 18:53:01 +03:00
DaniilShmelev 1d98acc3a9
Upgrade infrastructure to support Node 10 (#201)
* allow tasks to upgrade their TS version

* make build directory consistent with azure-pipelines-tasks repo

https://github.com/microsoft/azure-pipelines-tasks/pull/7040/files#diff-53c70f37847db86d5ef8f8ed103140aebe630332facb6af5cd99e4845c180ef8L129

* update build infrastructure to support Node 10

* update dependencies

* change all tasks folder names to use CamelCase

* fix task names in make-options.json

* update downloadArchive
2021-01-28 14:55:35 +03:00
Ryu Yu 3b05bb723a renaming task directories to better match the pattern we used in other extensions 2016-03-14 08:17:05 -07:00
Ryu Yu 4e110bc959 oops. Removing accidentally added screenshots 2016-03-14 08:12:51 -07:00
Ryu Yu 76b6d2f7a4 adding promote task 2016-03-14 08:08:34 -07:00