Skip to content

Commit

Permalink
Updated 1password integration to be the first step (before checkout) …
Browse files Browse the repository at this point in the history
…to allow handing secrets to the checkout operation (#1049)
  • Loading branch information
david-driscoll committed Dec 25, 2023
1 parent df05675 commit 12129e9
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/Nuke/GithubActions/GitHubActionsStepsAttribute.cs
Original file line number Diff line number Diff line change
Expand Up @@ -80,11 +80,7 @@ public class GitHubActionsStepsAttribute : GithubActionsStepsAttributeBase
/// <inheritdoc />
public override ConfigurationEntity GetConfiguration(IReadOnlyCollection<ExecutableTarget> relevantTargets)
{
var steps = new List<GitHubActionsStep>
{
new CheckoutStep("Checkout"),
// new SetupDotNetStep("Install .NET Core Sdk"),
};
var steps = new List<GitHubActionsStep>();


var attributes = Build.GetType().GetCustomAttributes().OfType<TriggerValueAttribute>().ToArray();
Expand Down Expand Up @@ -243,6 +239,8 @@ public override ConfigurationEntity GetConfiguration(IReadOnlyCollection<Executa
);
}

steps.Add(new CheckoutStep("Checkout"));

var globalToolStep = new RunStep("Install Nuke Global Tool")
{
Run = "dotnet tool install -g Nuke.GlobalTool",
Expand Down

0 comments on commit 12129e9

Please sign in to comment.