-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -43,6 +43,14 @@ params string[] images | |
{ | ||
} | ||
|
||
/// <summary> | ||
/// The PAT token that is used to access the repository | ||
/// </summary> | ||
/// <remarks> | ||
/// Should be in the format of the name of the secret eg RSG_BOT_TOKEN | ||
/// </remarks> | ||
public string TokenSecret { get; set; } = "RSG_BOT_TOKEN"; | ||
Check warning on line 52 in src/Nuke/GithubActions/GitHubActionsLintAttribute.cs GitHub Actions / lint
Check warning on line 52 in src/Nuke/GithubActions/GitHubActionsLintAttribute.cs GitHub Actions / lint
Check warning on line 52 in src/Nuke/GithubActions/GitHubActionsLintAttribute.cs GitHub Actions / build (ubuntu-latest)
Check warning on line 52 in src/Nuke/GithubActions/GitHubActionsLintAttribute.cs GitHub Actions / build (ubuntu-latest)
Check warning on line 52 in src/Nuke/GithubActions/GitHubActionsLintAttribute.cs GitHub Actions / build (ubuntu-latest)
Check warning on line 52 in src/Nuke/GithubActions/GitHubActionsLintAttribute.cs GitHub Actions / build (ubuntu-latest)
Check warning on line 52 in src/Nuke/GithubActions/GitHubActionsLintAttribute.cs Codecov / codecov/patchsrc/Nuke/GithubActions/GitHubActionsLintAttribute.cs#L52
Check warning on line 52 in src/Nuke/GithubActions/GitHubActionsLintAttribute.cs GitHub Actions / build (macos-latest)
Check warning on line 52 in src/Nuke/GithubActions/GitHubActionsLintAttribute.cs GitHub Actions / build (macos-latest)
Check warning on line 52 in src/Nuke/GithubActions/GitHubActionsLintAttribute.cs GitHub Actions / build (macos-latest)
Check warning on line 52 in src/Nuke/GithubActions/GitHubActionsLintAttribute.cs GitHub Actions / build (macos-latest)
Check warning on line 52 in src/Nuke/GithubActions/GitHubActionsLintAttribute.cs GitHub Actions / build (windows-latest)
Check warning on line 52 in src/Nuke/GithubActions/GitHubActionsLintAttribute.cs GitHub Actions / build (windows-latest)
Check warning on line 52 in src/Nuke/GithubActions/GitHubActionsLintAttribute.cs GitHub Actions / build (windows-latest)
Check warning on line 52 in src/Nuke/GithubActions/GitHubActionsLintAttribute.cs GitHub Actions / build (windows-latest)
|
||
|
||
/// <inheritdoc /> | ||
public override ConfigurationEntity GetConfiguration(IReadOnlyCollection<ExecutableTarget> relevantTargets) | ||
{ | ||
|
@@ -63,6 +71,7 @@ public override ConfigurationEntity GetConfiguration(IReadOnlyCollection<Executa | |
.ConfigureStep<CheckoutStep>( | ||
step => | ||
{ | ||
step.Token = "${{ secrets.RSG_BOT_TOKEN }}"; | ||
step.FetchDepth = 0; | ||
step.Repository = "${{ github.event.pull_request.head.repo.full_name }}"; | ||
step.Ref = "${{ github.event.pull_request.head.ref }}"; | ||
|