Skip to content

Commit 53834b8

Browse files
authored
Merge pull request #388 from bolshakov/hotfix/v5.3.2
Fixe release workflow permissions and trigger
2 parents 92e4e13 + 9b6bef9 commit 53834b8

File tree

4 files changed

+13
-10
lines changed

4 files changed

+13
-10
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: 🚦Stoplight
33
on:
44
pull_request:
55
push:
6-
branches: [ master ]
6+
branches: [ main ]
77

88
permissions: # added using https://github.com/step-security/secure-repo
99
contents: read

.github/workflows/release.yml

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,22 @@
11
name: Release 🚀
22
on:
3-
release:
4-
types: [published]
3+
push:
4+
branches: [ main ]
55

66
env:
77
version: ${{ github.event.release.tag_name }}
88
docker_username: ${{ secrets.DOCKER_HUB_USERNAME }}
99
docker_password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
1010

11-
permissions: # added using https://github.com/step-security/secure-repo
12-
contents: read
13-
1411
jobs:
1512
gem:
1613
name: Ruby Gem 📦
1714
runs-on: ubuntu-latest
18-
environment: releases
15+
environment: release
16+
permissions:
17+
contents: read
18+
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
19+
contents: write # IMPORTANT: this permission is required for `rake release` to push the release tag
1920
steps:
2021
- name: Harden the runner (Audit all outbound calls)
2122
uses: step-security/harden-runner@ec9f2d5744a09debf3a187a3f4f675c53b671911 # v2.13.0
@@ -38,7 +39,9 @@ jobs:
3839
name: Docker Image 🐳
3940
needs: [gem]
4041
runs-on: ubuntu-latest
41-
environment: releases
42+
environment: release
43+
permissions:
44+
contents: read
4245
steps:
4346
- name: Harden the runner (Audit all outbound calls)
4447
uses: step-security/harden-runner@ec9f2d5744a09debf3a187a3f4f675c53b671911 # v2.13.0

Gemfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PATH
22
remote: .
33
specs:
4-
stoplight (5.3.1)
4+
stoplight (5.3.2)
55
zeitwerk
66

77
GEM

lib/stoplight/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# frozen_string_literal: true
22

33
module Stoplight
4-
VERSION = Gem::Version.new("5.3.1")
4+
VERSION = Gem::Version.new("5.3.2")
55
end

0 commit comments

Comments
 (0)