Skip to content

Create go-ossf-slsa3-publish.yml #768

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

JohnDaWalka
Copy link

This pull request introduces a new GitHub Actions workflow for building Go projects using a SLSA3-compliant builder. The workflow is designed to enhance supply chain security by generating a provenance file that describes the steps taken to produce the final binary.

New GitHub Actions Workflow:

  • .github/workflows/go-ossf-slsa3-publish.yml: Added a workflow named "SLSA Go releaser" to compile Go projects with a SLSA3-compliant builder. This includes generating a provenance file for enhanced supply chain security, leveraging the OpenSSF initiative. The workflow uses the slsa-framework/slsa-github-generator and supports Go version 1.17.<!--
    Thank you for contributing to GitHub MCP Server!
    Please reference an existing issue: Closes #NUMBER

    Screenshots or videos of changed behavior is incredibly helpful and always appreciated.
    Consider addressing the following:

    • Tradeoffs: List tradeoffs you made to take on or pay down tech debt.
    • Alternatives: Describe alternative approaches you considered and why you discarded them.
      -->

Closes:

Signed-off-by: JohnDaWalka <201526231+JohnDaWalka@users.noreply.github.com>
@Copilot Copilot AI review requested due to automatic review settings July 27, 2025 13:07
@JohnDaWalka JohnDaWalka requested a review from a team as a code owner July 27, 2025 13:07
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR introduces a new GitHub Actions workflow to enhance supply chain security by implementing SLSA3-compliant building for Go projects. The workflow generates provenance files that document the build process, following OpenSSF standards.

  • Adds a new GitHub Actions workflow for SLSA3-compliant Go builds
  • Configures automatic triggers on releases and manual workflow dispatch
  • Sets up proper permissions for signing and uploading release assets


jobs:
# ========================================================================================================================================
# Prerequesite: Create a .slsa-goreleaser.yml in the root directory of your project.
Copy link
Preview

Copilot AI Jul 27, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's a spelling error: 'Prerequesite' should be 'Prerequisite'.

Suggested change
# Prerequesite: Create a .slsa-goreleaser.yml in the root directory of your project.
# Prerequisite: Create a .slsa-goreleaser.yml in the root directory of your project.

Copilot uses AI. Check for mistakes.

actions: read # To read workflow path.
uses: slsa-framework/slsa-github-generator/.github/workflows/builder_go_slsa3.yml@v1.4.0
with:
go-version: 1.17
Copy link
Preview

Copilot AI Jul 27, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Go version 1.17 is quite old (released in 2021). Consider using a more recent version like 1.21 or 1.22 for better security, performance, and language features.

Suggested change
go-version: 1.17
go-version: 1.22

Copilot uses AI. Check for mistakes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant