mirror of
https://github.com/jimeh/go-render.git
synced 2026-02-19 03:16:39 +00:00
ci: set GitHub workflow permissions (#9)
This commit is contained in:
6
.github/workflows/ci.yml
vendored
6
.github/workflows/ci.yml
vendored
@@ -2,6 +2,9 @@
|
|||||||
name: CI
|
name: CI
|
||||||
on: push
|
on: push
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
lint:
|
lint:
|
||||||
name: Lint
|
name: Lint
|
||||||
@@ -72,6 +75,9 @@ jobs:
|
|||||||
release-please:
|
release-please:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
if: github.ref == 'refs/heads/main'
|
if: github.ref == 'refs/heads/main'
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
|
pull-requests: write
|
||||||
outputs:
|
outputs:
|
||||||
release_created: ${{ steps.release-please.outputs.release_created }}
|
release_created: ${{ steps.release-please.outputs.release_created }}
|
||||||
version: ${{ steps.release-please.outputs.version }}
|
version: ${{ steps.release-please.outputs.version }}
|
||||||
|
|||||||
Reference in New Issue
Block a user