Skip to content

Commit 363e7af

Browse files
authored
Merge pull request #70 from github-community-projects/jm_workflow_permissions
fix: add permissions to ci actions workflow
2 parents 87b530a + cc25f26 commit 363e7af

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
name: CI
22
on: [push, pull_request]
3+
permissions:
4+
contents: read
35
jobs:
46
build:
57
name: Test on Ruby ${{ matrix.ruby_version }}, Rails ${{ matrix.rails_version }}, graphql-ruby ${{ matrix.graphql_version }}

.github/workflows/release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@ on:
33
release:
44
types: [published]
55
workflow_dispatch:
6+
permissions:
7+
contents: write
8+
id-token: write
69
jobs:
710
release:
811
name: Release to RubyGems
9-
permissions:
10-
contents: write
11-
id-token: write
1212
runs-on: ubuntu-latest
1313
steps:
1414
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4

0 commit comments

Comments
 (0)