Skip to content

Commit fd75af4

Browse files
Copilotjkowalleck
andcommitted
security: add workflow-level permissions lock and disable bundler cache
Co-authored-by: jkowalleck <[email protected]>
1 parent eba52c8 commit fd75af4

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

.github/workflows/release.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
11
name: Release
22

3+
run-name: Release ${{ github.ref_name }}
4+
35
on:
46
push:
57
tags:
68
- 'v*'
79

10+
permissions: {}
11+
812
jobs:
913
build:
1014
runs-on: ubuntu-latest
@@ -18,7 +22,10 @@ jobs:
1822
uses: ruby/setup-ruby@v1
1923
with:
2024
ruby-version: '3.3'
21-
bundler-cache: true
25+
bundler-cache: false
26+
27+
- name: Install dependencies
28+
run: bundle install --jobs 4 --retry 3
2229

2330
- name: Extract version from tag
2431
id: version
@@ -92,7 +99,10 @@ jobs:
9299
uses: ruby/setup-ruby@v1
93100
with:
94101
ruby-version: '3.3'
95-
bundler-cache: true
102+
bundler-cache: false
103+
104+
- name: Install dependencies
105+
run: bundle install --jobs 4 --retry 3
96106

97107
- name: Check for RubyGems API key
98108
run: |

0 commit comments

Comments
 (0)