Skip to content

Commit

Permalink
Merge pull request #85 from DuendeSoftware/dh/remove-sectigo-step
Browse files Browse the repository at this point in the history
Remove Install Sectigo CodeSiging CA certificates step
  • Loading branch information
damianh authored Jan 13, 2025
2 parents dcadc50 + 3b9e7f7 commit acc5584
Show file tree
Hide file tree
Showing 9 changed files with 0 additions and 72 deletions.
16 changes: 0 additions & 16 deletions .github/workflow-gen/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,6 @@ void GenerateCiWorkflow(Component component)
job.StepTestAndReport(component.Name, testProject);
}

job.StepInstallCACerts();

job.StepToolRestore();

foreach (var project in component.Projects)
Expand Down Expand Up @@ -131,8 +129,6 @@ git config --global user.name ""Duende Software GitHub Bot""
git tag -a {component.TagPrefix}-{contexts.Event.Input.Version} -m ""Release v{contexts.Event.Input.Version}""
git push origin {component.TagPrefix}-{contexts.Event.Input.Version}");

tagJob.StepInstallCACerts();

foreach (var project in component.Projects)
{
tagJob.StepPack(project);
Expand Down Expand Up @@ -220,18 +216,6 @@ public static void StepTestAndReport(this Job job, string componentName, string
("fail-on-empty", "true"));
}

// These intermediate certificates are required for signing and are not installed on the GitHub runners by default.
public static void StepInstallCACerts(this Job job)
=> job.Step()
.Name("Install Sectigo CodeSiging CA certificates")
.WorkingDirectory(".github/workflows")
.Run("""
sudo apt-get update
sudo apt-get install -y ca-certificates
sudo cp SectigoPublicCodeSigningRootCrossAAA.crt /usr/local/share/ca-certificates/
sudo update-ca-certificates
""");

public static void StepToolRestore(this Job job)
=> job.Step()
.Name("Tool restore")
Expand Down
7 changes: 0 additions & 7 deletions .github/workflows/access-token-management-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,6 @@ jobs:
reporter: dotnet-trx
fail-on-error: true
fail-on-empty: true
- name: Install Sectigo CodeSiging CA certificates
run: |-
sudo apt-get update
sudo apt-get install -y ca-certificates
sudo cp SectigoPublicCodeSigningRootCrossAAA.crt /usr/local/share/ca-certificates/
sudo update-ca-certificates
working-directory: .github/workflows
- name: Tool restore
run: dotnet tool restore
- name: Pack AccessTokenManagement
Expand Down
7 changes: 0 additions & 7 deletions .github/workflows/access-token-management-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,6 @@ jobs:
git config --global user.name "Duende Software GitHub Bot"
git tag -a atm-${{ github.event.inputs.version }} -m "Release v${{ github.event.inputs.version }}"
git push origin atm-${{ github.event.inputs.version }}
- name: Install Sectigo CodeSiging CA certificates
run: |-
sudo apt-get update
sudo apt-get install -y ca-certificates
sudo cp SectigoPublicCodeSigningRootCrossAAA.crt /usr/local/share/ca-certificates/
sudo update-ca-certificates
working-directory: .github/workflows
- name: Pack AccessTokenManagement
run: dotnet pack -c Release src/AccessTokenManagement -o artifacts
- name: Pack AccessTokenManagement.OpenIdConnect
Expand Down
7 changes: 0 additions & 7 deletions .github/workflows/identity-model-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,6 @@ jobs:
reporter: dotnet-trx
fail-on-error: true
fail-on-empty: true
- name: Install Sectigo CodeSiging CA certificates
run: |-
sudo apt-get update
sudo apt-get install -y ca-certificates
sudo cp SectigoPublicCodeSigningRootCrossAAA.crt /usr/local/share/ca-certificates/
sudo update-ca-certificates
working-directory: .github/workflows
- name: Tool restore
run: dotnet tool restore
- name: Pack IdentityModel
Expand Down
7 changes: 0 additions & 7 deletions .github/workflows/identity-model-oidc-client-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,6 @@ jobs:
reporter: dotnet-trx
fail-on-error: true
fail-on-empty: true
- name: Install Sectigo CodeSiging CA certificates
run: |-
sudo apt-get update
sudo apt-get install -y ca-certificates
sudo cp SectigoPublicCodeSigningRootCrossAAA.crt /usr/local/share/ca-certificates/
sudo update-ca-certificates
working-directory: .github/workflows
- name: Tool restore
run: dotnet tool restore
- name: Pack IdentityModel.OidcClient
Expand Down
7 changes: 0 additions & 7 deletions .github/workflows/identity-model-oidc-client-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,6 @@ jobs:
git config --global user.name "Duende Software GitHub Bot"
git tag -a imoc-${{ github.event.inputs.version }} -m "Release v${{ github.event.inputs.version }}"
git push origin imoc-${{ github.event.inputs.version }}
- name: Install Sectigo CodeSiging CA certificates
run: |-
sudo apt-get update
sudo apt-get install -y ca-certificates
sudo cp SectigoPublicCodeSigningRootCrossAAA.crt /usr/local/share/ca-certificates/
sudo update-ca-certificates
working-directory: .github/workflows
- name: Pack IdentityModel.OidcClient
run: dotnet pack -c Release src/IdentityModel.OidcClient -o artifacts
- name: Pack IdentityModel.OidcClient.Extensions
Expand Down
7 changes: 0 additions & 7 deletions .github/workflows/identity-model-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,6 @@ jobs:
git config --global user.name "Duende Software GitHub Bot"
git tag -a im-${{ github.event.inputs.version }} -m "Release v${{ github.event.inputs.version }}"
git push origin im-${{ github.event.inputs.version }}
- name: Install Sectigo CodeSiging CA certificates
run: |-
sudo apt-get update
sudo apt-get install -y ca-certificates
sudo cp SectigoPublicCodeSigningRootCrossAAA.crt /usr/local/share/ca-certificates/
sudo update-ca-certificates
working-directory: .github/workflows
- name: Pack IdentityModel
run: dotnet pack -c Release src/IdentityModel -o artifacts
- name: Tool restore
Expand Down
7 changes: 0 additions & 7 deletions .github/workflows/ignore-this-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,6 @@ jobs:
reporter: dotnet-trx
fail-on-error: true
fail-on-empty: true
- name: Install Sectigo CodeSiging CA certificates
run: |-
sudo apt-get update
sudo apt-get install -y ca-certificates
sudo cp SectigoPublicCodeSigningRootCrossAAA.crt /usr/local/share/ca-certificates/
sudo update-ca-certificates
working-directory: .github/workflows
- name: Tool restore
run: dotnet tool restore
- name: Pack IgnoreThis
Expand Down
7 changes: 0 additions & 7 deletions .github/workflows/ignore-this-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,6 @@ jobs:
git config --global user.name "Duende Software GitHub Bot"
git tag -a it-${{ github.event.inputs.version }} -m "Release v${{ github.event.inputs.version }}"
git push origin it-${{ github.event.inputs.version }}
- name: Install Sectigo CodeSiging CA certificates
run: |-
sudo apt-get update
sudo apt-get install -y ca-certificates
sudo cp SectigoPublicCodeSigningRootCrossAAA.crt /usr/local/share/ca-certificates/
sudo update-ca-certificates
working-directory: .github/workflows
- name: Pack IgnoreThis
run: dotnet pack -c Release src/IgnoreThis -o artifacts
- name: Tool restore
Expand Down

0 comments on commit acc5584

Please sign in to comment.