-
Notifications
You must be signed in to change notification settings - Fork 9
/
step.yml
executable file
·126 lines (111 loc) · 4.94 KB
/
step.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
title: "Project scanner"
summary: Scans repository for iOS, macOS, Android, Fastlane, Cordova, Ionic, React Native and Flutter projects
description: |-
This Step scans your repository to determine your project's type.
The Step scans for:
* **iOS** and **macOS** projects, the Step detects `CocoaPods` and scans Xcode project files for valid Xcode command line configurations.
* **Android** projects, the Step checks for `build.gradle` files and lists all the Gradle tasks. It also checks for a `gradlew` file.
* **Fastlane**, the Step detects `Fastfile` and lists the available lanes.
* **Cordova** projects, the Step checks for the `config.xml` file.
* **Ionic** projects, the Step checks for the `ionic.config.json` and `ionic.project` files.
* **React Native** projects, the Step checks for `package.json` files and also runs the **iOS** and **Android** native project scanners.
* **Flutter** projects, the Step checks for the `pubspec.yaml` files.
### Configuring the Step
To successfully run the Step, you need:
1. An SSH key
1. A repository
To configure the Step:
1. **POST url to send the scan results to**: You can send your app's scan results to an URL as a POST request.
1. **URL to get app icon candidates upload URLs**: You can upload your app's icons using this input.
1. **Verbose log option**: You can set this input to `yes` to produce more informative logs.
1. **Activate SSH key and clone git repo inside the Step**: You can set this input to `true` to activate an SSH key and clone the git repository of your app.
### Troubleshooting
If you receive an error message, `No known platform detected`, make sure that you cloned the correct repository and you have a valid SSH key.
### Useful links
* [Creating your own project scanner](https://devcenter.bitrise.io/en/steps-and-workflows/developing-your-own-bitrise-step/creating-your-own-bitrise-project-scanner.html)
website: https://github.com/bitrise-steplib/steps-project-scanner
source_code_url: https://github.com/bitrise-steplib/steps-project-scanner
support_url: https://github.com/bitrise-steplib/steps-project-scanner/issues
type_tags:
- utility
is_requires_admin_user: false
is_always_run: false
is_skippable: false
toolkit:
go:
package_name: github.com/bitrise-io/steps-project-scanner
inputs:
- scan_dir: $BITRISE_SOURCE_DIR
opts:
title: "Directory to scan."
description: "The Step will look for the projects in this directory."
is_required: true
- scan_result_submit_url: "$BITRISE_SCAN_RESULT_POST_URL"
opts:
title: "POST url to send the scan results to"
description: |
If provided, the scan results will be sent to the given
URL, with a POST request.
is_dont_change_value: true
- scan_result_submit_api_token: "$BITRISE_APP_API_TOKEN"
opts:
title: "API Token for scan result submission"
description: |
If provided and `scan_result_submit_url` also provided,
this API Token will be used for sending the Scan Results.
is_dont_change_value: true
is_sensitive: true
- icon_candidates_url: "$BITRISE_AVATAR_CANDIDATES_POST_URL"
opts:
title: "URL to get app icon candidates upload URLs"
description: |
If provided, the app icons will be uploaded.
- verbose_log: "false"
opts:
title: "Verbose log option"
description: |
You can enable the verbose log for easier debugging.
value_options:
- "true"
- "false"
- enable_repo_clone: "no"
opts:
title: "Activate SSH key and clone git repo inside the Step"
description: |
If set to yes then it will setup the SSH key (or HTTP credentials) and will clone the repo with the provided url and branch name.
value_options:
- "yes"
- "no"
- ssh_rsa_private_key: "$SSH_RSA_PRIVATE_KEY"
opts:
title: "SSH private key in RSA format"
description: "SSH key to be used for the git clone."
is_expand: true
is_dont_change_value: true
is_sensitive: true
- git_http_username: $GIT_HTTP_USERNAME
opts:
title: Username for establishing an HTTP(S) connection to the repository
is_dont_change_value: true
is_sensitive: true
- git_http_password: $GIT_HTTP_PASSWORD
opts:
title: Personal access token (or password) for establishing an HTTP(S) connection to the repository
is_dont_change_value: true
is_sensitive: true
- app_slug: "$BITRISE_APP_SLUG"
opts:
title: "Unique Identifier (slug) of the Bitrise app "
description: "Used for analytics purposes"
is_dont_change_value: true
- repository_url: "$GIT_REPOSITORY_URL"
opts:
title: "Git repository URL"
description: "Url to be used for the git clone."
is_dont_change_value: true
- branch: "$BITRISE_GIT_BRANCH"
opts:
category: Clone Config
title: "Git Branch to clone"
description: "Branch to be used for the git clone."
is_dont_change_value: true