Skip to content
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

ci(release): sign SHA256SUMS using cosign #1525

Merged
merged 1 commit into from
Oct 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: '1.23.1'
go-version: '1.23.2'

- name: Checkout code
uses: actions/checkout@v4
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/deadlock.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: '1.23.1'
go-version: '1.23.2'

- name: Checkout code
uses: actions/checkout@v4
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/gui.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: '1.23.1'
go-version: '1.23.2'

- name: Build the binary
run: make build_gui
Expand All @@ -47,7 +47,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: '1.23.1'
go-version: '1.23.2'

- name: Build the binary
run: make build_gui
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/linting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: '1.23.1'
go-version: '1.23.2'

- name: Checkout code
uses: actions/checkout@v4
Expand Down
47 changes: 38 additions & 9 deletions .github/workflows/releaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: '1.23.1'
go-version: '1.23.2'

- name: Create release files
run: bash ./.github/releasers/releaser_cli.sh
Expand Down Expand Up @@ -69,7 +69,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: '1.23.1'
go-version: '1.23.2'

- name: Create release files
run: bash ./.github/releasers/releaser_gui_linux.sh
Expand All @@ -95,7 +95,7 @@ jobs:

########################################
build-gui-macos:
runs-on: macos-12
runs-on: macos-13
env:
LIB_HOME: /usr/local

Expand All @@ -106,12 +106,12 @@ jobs:
- uses: actions/checkout@v4

- name: Install Dependencies
run: brew install gtk+3 librsvg create-dmg coreutils pkg-config gdk-pixbuf glib glib-networking
run: brew install gtk+3 librsvg create-dmg coreutils gdk-pixbuf glib-networking

- name: Install Go
uses: actions/setup-go@v5
with:
go-version: '1.23.1'
go-version: '1.23.2'

- name: Create release files
run: bash ./.github/releasers/releaser_gui_macos.sh
Expand Down Expand Up @@ -150,12 +150,12 @@ jobs:
- uses: actions/checkout@v4

- name: Install Dependencies
run: brew install gtk+3 librsvg create-dmg coreutils pkg-config gdk-pixbuf glib glib-networking
run: brew install gtk+3 librsvg create-dmg coreutils gdk-pixbuf glib-networking

- name: Install Go
uses: actions/setup-go@v5
with:
go-version: '1.23.1'
go-version: '1.23.2'

- name: Create release files
run: bash ./.github/releasers/releaser_gui_macos.sh
Expand All @@ -178,7 +178,6 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}


########################################
build-gui-windows:
runs-on: windows-latest
Expand Down Expand Up @@ -242,6 +241,13 @@ jobs:
echo "${{ needs.build-gui-macos.outputs.checksums }}" >> SHA256SUMS
echo "${{ needs.build-gui-macos-arm.outputs.checksums }}" >> SHA256SUMS
echo "${{ needs.build-gui-windows.outputs.checksums }}" >> SHA256SUMS

- name: Upload SHA256SUMS as an artifact
uses: actions/upload-artifact@v3
with:
name: sha256sums
path: SHA256SUMS

- name: Publish
uses: softprops/action-gh-release@v2
with:
Expand All @@ -250,9 +256,32 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

########################################
downloader:
cosign:
needs: [checksums]
runs-on: ubuntu-latest
steps:
- name: Download SHA256SUMS artifact
uses: actions/download-artifact@v3
with:
name: sha256sums

- uses: sigstore/[email protected]

- name: Sign Checksum
run: cosign sign-blob --yes --key env://COSIGN_PRIVATE_KEY SHA256SUMS > SHA256SUMS.sig
env:
COSIGN_PRIVATE_KEY: ${{ secrets.COSIGN_PRIVATE_KEY }}
COSIGN_PASSWORD: ${{ secrets.COSIGN_PASSWORD }}

- name: Publish
uses: softprops/action-gh-release@v2
with:
files: SHA256SUMS.sig

########################################
downloader:
needs: [cosign]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: '1.23.1'
go-version: '1.23.2'

- name: Unit tests
run: make unit_test
Loading