Skip to content
This repository has been archived by the owner on Oct 28, 2024. It is now read-only.

Commit

Permalink
feat(MOBT-329): Adding Cocoapods path to run. (#12)
Browse files Browse the repository at this point in the history
Co-authored-by: Alan Ostanik <[email protected]>
  • Loading branch information
ostanik and ostanik authored May 2, 2023
1 parent de3b281 commit a60a524
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions bitrise.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion step.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
5 changes: 5 additions & 0 deletions step.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit a60a524

Please sign in to comment.