From a60a5248d374bfec1384fd0bbb1283dd4d27bd7d Mon Sep 17 00:00:00 2001 From: Alan Ostanik <5314276+ostanik@users.noreply.github.com> Date: Tue, 2 May 2023 13:40:01 +0100 Subject: [PATCH] feat(MOBT-329): Adding Cocoapods path to run. (#12) Co-authored-by: Alan Ostanik --- README.md | 1 + bitrise.yml | 4 ++-- step.sh | 2 +- step.yml | 5 +++++ 4 files changed, 9 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 1193736..f427c6b 100644 --- a/README.md +++ b/README.md @@ -24,6 +24,7 @@ Create a workflow in your project's `bitrise.yml` as shown next - git::https://github.com/Zegocover/bitrise-snyk-scan.git: title: Snyk inputs: + - project_directory: $BITRISE_SOURCE_DIR // project directory is different from the source dir? - os_list: ios // is the project ios or android? - severity_threshold: low // critical is not supported by'snyk code' - org_name: some_name // Used to configure snyk organisation setting diff --git a/bitrise.yml b/bitrise.yml index a06a70f..20c8b3f 100644 --- a/bitrise.yml +++ b/bitrise.yml @@ -5,10 +5,10 @@ app: envs: # If you want to share this step into a StepLib - BITRISE_STEP_ID: bitrise-snyk-scan - - BITRISE_STEP_VERSION: "0.1.0" + - BITRISE_STEP_VERSION: "0.2.0" - BITRISE_STEP_GIT_CLONE_URL: https://github.com/Zegocover/bitrise-snyk-scan.git - MY_STEPLIB_REPO_FORK_GIT_URL: https://github.com/NataliaAn/bitrise-steplib.git - + workflows: test: steps: diff --git a/step.sh b/step.sh index 1d62ac6..e5e1536 100644 --- a/step.sh +++ b/step.sh @@ -23,7 +23,7 @@ function snykscannerios-run() { export PATH=$GEM_HOME/${ruby_version}/bin:$PATH gem install cocoapods --user-install - pod install # for podfile + pod install --project-directory=${project_directory} # for podfile bundle install # for gemfile diff --git a/step.yml b/step.yml index 0ec560e..730f2c1 100644 --- a/step.yml +++ b/step.yml @@ -13,6 +13,11 @@ is_always_run: true is_skippable: true run_if: "" inputs: +- project_directory: $BITRISE_SOURCE_DIR + opts: + title: "Project directory" + is_expand: false + is_required: true - os_list: ios opts: title: "Project's OS"