Skip to content

Commit

Permalink
Merge pull request #37 from github/attest-build-provenance
Browse files Browse the repository at this point in the history
Attest Build Provenance
  • Loading branch information
GrantBirki authored May 22, 2024
2 parents a52c0a0 + 0869642 commit 4b76a33
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ on:
permissions:
contents: write
packages: write
id-token: write
attestations: write

jobs:
release:
Expand Down Expand Up @@ -39,6 +41,10 @@ jobs:
# builds the gem and saves the version to GITHUB_ENV
- name: build
run: echo "GEM_VERSION=$(gem build ${{ env.GEM_NAME }}.gemspec 2>&1 | grep Version | cut -d':' -f 2 | tr -d " \t\n\r")" >> $GITHUB_ENV

- uses: actions/attest-build-provenance@v1
with:
subject-path: "${{ env.GEM_NAME }}-${{ env.GEM_VERSION }}.gem"

- name: publish to GitHub packages
run: |
Expand Down
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
entitlements-app (0.3.2)
entitlements-app (0.3.3)
concurrent-ruby (= 1.1.9)
faraday (~> 2.0)
net-ldap (~> 0.17)
Expand Down
2 changes: 1 addition & 1 deletion lib/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

module Entitlements
module Version
VERSION = "0.3.2"
VERSION = "0.3.3"
end
end

0 comments on commit 4b76a33

Please sign in to comment.