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
+5-5
Original file line number
Diff line number
Diff line change
@@ -49,19 +49,19 @@ Refer [here](https://github.com/actions/checkout/blob/v1/README.md) for previous
49
49
# with the local git config, which enables your scripts to run authenticated git
50
50
# commands. The post-job step removes the PAT.
51
51
#
52
-
# We recommend creating a service account with the least permissions necessary.
53
-
#Also when generating a new PAT, select the least scopes necessary.
52
+
# We recommend using a service account with the least permissions necessary. Also
53
+
# when generating a new PAT, select the least scopes necessary.
54
54
#
55
55
# [Learn more about creating and using encrypted secrets](https://help.github.com/en/actions/automating-your-workflow-with-github-actions/creating-and-using-encrypted-secrets)
56
56
#
57
57
# Default: ${{ github.token }}
58
58
token: ''
59
59
60
-
# SSH key used to fetch the repository. SSH key is configured with the local git
61
-
# config, which enables your scripts to run authenticated git commands. The
60
+
# SSH key used to fetch the repository. The SSH key is configured with the local
61
+
#git config, which enables your scripts to run authenticated git commands. The
62
62
# post-job step removes the SSH key.
63
63
#
64
-
# We recommend creating a service account with the least permissions necessary.
64
+
# We recommend using a service account with the least permissions necessary.
65
65
#
66
66
# [Learn more about creating and using encrypted secrets](https://help.github.com/en/actions/automating-your-workflow-with-github-actions/creating-and-using-encrypted-secrets)
`Skipped test "${configureSubmoduleAuth_doesNotConfigureUrlInsteadOfWhenPersistCredentialsTrueAndSshKeySet}". Executable 'ssh' not found in the PATH.\n`
537
+
`Skipped test "${configureSubmoduleAuth_configuresSubmodulesWhenPersistCredentialsTrueAndSshKeySet}". Executable 'ssh' not found in the PATH.\n`
Copy file name to clipboardexpand all lines: action.yml
+3-3
Original file line number
Diff line number
Diff line change
@@ -16,20 +16,20 @@ inputs:
16
16
commands. The post-job step removes the PAT.
17
17
18
18
19
-
We recommend creating a service account with the least permissions necessary.
19
+
We recommend using a service account with the least permissions necessary.
20
20
Also when generating a new PAT, select the least scopes necessary.
21
21
22
22
23
23
[Learn more about creating and using encrypted secrets](https://help.github.com/en/actions/automating-your-workflow-with-github-actions/creating-and-using-encrypted-secrets)
24
24
default: ${{ github.token }}
25
25
ssh-key:
26
26
description: >
27
-
SSH key used to fetch the repository. SSH key is configured with the local
27
+
SSH key used to fetch the repository. The SSH key is configured with the local
28
28
git config, which enables your scripts to run authenticated git commands.
29
29
The post-job step removes the SSH key.
30
30
31
31
32
-
We recommend creating a service account with the least permissions necessary.
32
+
We recommend using a service account with the least permissions necessary.
@@ -5820,6 +5825,12 @@ function getSource(settings) {
5820
5825
// Downloading using REST API
5821
5826
core.info(`The repository will be downloaded using the GitHub REST API`);
5822
5827
core.info(`To create a local Git repository instead, add Git ${gitCommandManager.MinimumGitVersion} or higher to the PATH`);
5828
+
if (settings.submodules) {
5829
+
throw new Error(`Input 'submodules' not supported when falling back to download using the GitHub REST API. To create a local Git repository instead, add Git ${gitCommandManager.MinimumGitVersion} or higher to the PATH.`);
5830
+
}
5831
+
else if (settings.sshKey) {
5832
+
throw new Error(`Input 'ssh-key' not supported when falling back to download using the GitHub REST API. To create a local Git repository instead, add Git ${gitCommandManager.MinimumGitVersion} or higher to the PATH.`);
`To create a local Git repository instead, add Git ${gitCommandManager.MinimumGitVersion} or higher to the PATH`
59
59
)
60
+
if(settings.submodules){
61
+
thrownewError(
62
+
`Input 'submodules' not supported when falling back to download using the GitHub REST API. To create a local Git repository instead, add Git ${gitCommandManager.MinimumGitVersion} or higher to the PATH.`
63
+
)
64
+
}elseif(settings.sshKey){
65
+
thrownewError(
66
+
`Input 'ssh-key' not supported when falling back to download using the GitHub REST API. To create a local Git repository instead, add Git ${gitCommandManager.MinimumGitVersion} or higher to the PATH.`
0 commit comments