Skip to content

Commit

Permalink
Merge pull request #1281 from mathbunnyru/asalikhov/github_write_perm…
Browse files Browse the repository at this point in the history
…issions

Add write permissions to github jobs
  • Loading branch information
romainx authored May 3, 2021
2 parents fde8f1e + b1546b9 commit 289c402
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ jobs:
build:
name: Build Docker Images
runs-on: ubuntu-latest
permissions:
contents: write
if: >
!contains(github.event.head_commit.message, 'ci skip') &&
!contains(github.event.pull_request.title, 'ci skip')
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/sphinx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ jobs:
build:
name: Build Sphinx Documentation
runs-on: ubuntu-latest
permissions:
contents: write
if: >
!contains(github.event.head_commit.message , 'ci skip') &&
!contains(github.event.pull_request.title, 'ci skip')
Expand All @@ -42,6 +44,6 @@ jobs:
if: github.ref == 'refs/heads/master'
run: make git-commit
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_REPOSITORY: ${{ github.repository }}
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
GITHUB_REPOSITORY: ${{github.repository}}
LOCAL_PATH: ./docs/locale/en

0 comments on commit 289c402

Please sign in to comment.