Skip to content

Commit

Permalink
Add write permissions to assign.yaml
Browse files Browse the repository at this point in the history
Signed-off-by: Pedro Kaj Kjellerup Nacht <pnacht@google.com>
  • Loading branch information
pnacht authored and thockin committed Apr 10, 2023
1 parent fef7432 commit 4058b9a
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 15 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/apidiff.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: Run apidiff

on: [pull_request]
on: [ pull_request ]

permissions:
contents: read
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/assign.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ permissions:
jobs:
assign:
runs-on: ubuntu-latest
permissions:
issues: write
pull-requests: write
steps:
- uses: actions/github-script@v6
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: Run lint

on: [push, pull_request]
on: [ push, pull_request ]

permissions:
contents: read
Expand Down
26 changes: 13 additions & 13 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: Run tests

on: [push, pull_request]
on: [ push, pull_request ]

permissions:
contents: read
Expand All @@ -9,17 +9,17 @@ jobs:
test:
strategy:
matrix:
version: ["1.15", "1.16", "1.17", "1.18"]
platform: [ubuntu-latest, macos-latest, windows-latest]
version: [ '1.15', '1.16', '1.17', '1.18' ]
platform: [ ubuntu-latest, macos-latest, windows-latest ]
runs-on: ${{ matrix.platform }}
steps:
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.version }}
- name: Checkout code
uses: actions/checkout@v2
- name: Build
run: go build -v ./...
- name: Test
run: go test -v -race ./...
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.version }}
- name: Checkout code
uses: actions/checkout@v2
- name: Build
run: go build -v ./...
- name: Test
run: go test -v -race ./...

0 comments on commit 4058b9a

Please sign in to comment.