You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can use the `pem-to-one-liner.sh` script to do this, which just uses `tr` to remove the line breaks.
135
+
You can use the `scripts/pem-to-one-liner.sh` script to do this, which just uses `tr` to remove the line breaks.
136
136
137
137
It is also possible to set these directly in the Azure Portal, but you may prefer to configure them in code.
138
138
@@ -142,7 +142,7 @@ You can sync your remote settings from the app you created to the local repo.
142
142
143
143
You can use the Azure Functions extension in VSCode. Right-click on the Function App in the Resources pane, and select "Download remote settings" from the context menu.
144
144
145
-
Alternatively, you can also use the `sync-settings-remote-to-local.sh` script, after you set `azure.env` appropriately. This will save the settings to `remote.settings.json`, which you can copy to `local.settings.json`.
145
+
Alternatively, you can also use the `scripts/sync-settings-remote-to-local.sh` script, after you set `scripts/azure.env` appropriately. This will save the settings to `remote.settings.json`, which you can copy to `local.settings.json`.
146
146
147
147
Then in your `local.settings.json` file these environment variables are defined like:
148
148
@@ -171,7 +171,7 @@ You can also set them directly in the `local.settings.json` (as above) and sync
171
171
172
172
#### Configuring the Functions App with the Azure CLI
173
173
174
-
You can use the `sync-settings-local-to-remote.sh` shell script provided in this repository. Make sure to set the `local.settings.json` and `azure.env` appropriately first.
174
+
You can use the `scripts/sync-settings-local-to-remote.sh` shell script provided in this repository. Make sure to set the `local.settings.json` and `scripts/azure.env` appropriately first.
175
175
176
176
### Deploying the Function to the Function App
177
177
@@ -181,7 +181,7 @@ You can use the Azure Portal, the Azure CLI, or the VSCode Azure Functions exten
181
181
182
182
Some of these steps assume you have zipped up the code of this function into `slack-secret-scanning-notifier.zip`.
183
183
184
-
You can do that using the `make-function-zip.sh` shell script provide in this repository. Make sure to set the `azure.env` appropriately first.
184
+
You can do that using the `scripts/make-function-zip.sh` shell script provide in this repository. Make sure to set the `scripts/azure.env` appropriately first.
185
185
186
186
#### Deploying with the Azure Portal
187
187
@@ -195,9 +195,9 @@ Select "Zip Deploy", and upload the `slack-secret-scanning-notifier.zip` file.
195
195
196
196
#### Deploying with the Azure CLI
197
197
198
-
Use the `deploy.sh` shell script provided in this repository. Make sure to set the `azure.env` appropriately first.
198
+
Use the `scripts/deploy.sh` shell script provided in this repository. Make sure to set the `scripts/azure.env` appropriately first.
199
199
200
-
That may fail if it can't find the function app. If it does, you can try using `deploy-zip.sh` instead, using the `slack-secret-scanning-notifier.zip`.
200
+
That may fail if it can't find the function app. If it does, you can try using `scripts/deploy-zip.sh` instead, using the `slack-secret-scanning-notifier.zip`.
201
201
202
202
#### Deploying with the VSCode Azure Functions extension
203
203
@@ -211,7 +211,7 @@ There are a couple of ways to deploy the function to the Function App with the V
211
211
212
212
You need to find the URL of the Function to set up the GitHub App's webhook.
213
213
214
-
This is returned when you deploy the function to the Function App using the `deploy.sh` script. If you used a different method, you may need to find it manually.
214
+
This is returned when you deploy the function to the Function App using the `scripts/deploy.sh` script. If you used a different method, you may need to find it manually.
215
215
216
216
You can use the Azure Portal, the Azure CLI, or the VSCode Azure Functions extension to do this.
217
217
@@ -225,7 +225,7 @@ That should take you to the Function App's page. You should see your Function li
225
225
226
226
#### Finding the Function's URL with the Azure CLI
227
227
228
-
Use the `get-function-url.sh` shell script provided in this repository. Make sure to set the `azure.env` appropriately first.
228
+
Use the `scripts/get-function-url.sh` shell script provided in this repository. Make sure to set the `scripts/azure.env` appropriately first.
229
229
230
230
This gets the URL of your Functions App and adds `/api/slack-secret-scanning-notifier` to the end of the URL, to get the full URL to your Function.
0 commit comments