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
Copy file name to clipboardExpand all lines: README.md
+10-34
Original file line number
Diff line number
Diff line change
@@ -15,8 +15,9 @@ Create a workflow `.yml` file in your `.github/workflows` directory. An [example
15
15
16
16
#### Optional requirement
17
17
Since `action-cli-login` requires user name and password which are sensitive pieces of information, it would be ideal to store them securely. We can achieve this in a GitHub repo by using [secrets](https://help.github.com/en/actions/automating-your-workflow-with-github-actions/creating-and-using-encrypted-secrets). So, click on `settings` tab in your repo and add 2 new secrets:
18
-
-`adminUsername` - store the admin user name in this (e.g. [email protected])
19
-
-`adminPassword` - store the password of that user in this.
18
+
-`ADMIN_USERNAME` - store the admin user name in this (e.g. [email protected])
19
+
-`ADMIN_PASSWORD` - store the password of that user in this.
20
+
20
21
These secrets are encrypted and can only be used by GitHub actions.
21
22
22
23
### Compatibility matrix
@@ -25,7 +26,7 @@ The following table lists which versions of the GitHub action are compatible wit
25
26
26
27
Version | CLI for Microsoft 365 version
27
28
--- | ---
28
-
v3.0.0 | v6.0.0
29
+
^v3.0.0 | v6.0.0
29
30
v2.0.2 | v5.8.0
30
31
v1.0.0 | v2.5.0
31
32
@@ -58,7 +59,7 @@ jobs:
58
59
runs-on: ubuntu-latest
59
60
strategy:
60
61
matrix:
61
-
node-version: [10.x]
62
+
node-version: [18.x]
62
63
63
64
steps:
64
65
@@ -68,18 +69,18 @@ jobs:
68
69
69
70
# CLI for Microsoft 365 login action
70
71
- name: Login to tenant
71
-
uses: pnp/action-cli-login@v2.0.0
72
+
uses: pnp/action-cli-login@v2
72
73
with:
73
-
ADMIN_USERNAME: ${{ secrets.adminUsername }}
74
-
ADMIN_PASSWORD: ${{ secrets.adminPassword }}
74
+
ADMIN_USERNAME: ${{ secrets.ADMIN_USERNAME }}
75
+
ADMIN_PASSWORD: ${{ secrets.ADMIN_PASSWORD }}
75
76
76
77
# CLI for Microsoft 365 deploy app action
77
78
# Use either option 1 or option 2
78
79
79
80
# Option 1 - Deploy app at tenant level
80
81
- name: Option 1 - Deploy app to tenant
81
82
id: climicrosoft365deploy # optional - use if output needs to be used
0 commit comments