mirror of
https://github.com/placeholder-soft/prodigyapi.git
synced 2026-01-12 17:02:55 +08:00
Limit GITHUB_TOKEN scope for workflows (#1522)
This commit is contained in:
3
.github/workflows/deploy.yml
vendored
3
.github/workflows/deploy.yml
vendored
@@ -6,6 +6,9 @@ on:
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
permissions:
|
||||
contents: write
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
ruby-version: 2.5
|
||||
|
||||
28
.github/workflows/dev_deploy.yml
vendored
28
.github/workflows/dev_deploy.yml
vendored
@@ -5,7 +5,25 @@ on:
|
||||
branches: [ 'dev' ]
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
push_to_registry:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Check out the repo
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Push to Docker Hub
|
||||
uses: docker/build-push-action@v1
|
||||
with:
|
||||
username: ${{ secrets.DOCKER_USERNAME }}
|
||||
password: ${{ secrets.DOCKER_ACCESS_KEY }}
|
||||
repository: slatedocs/slate
|
||||
tag_with_ref: true
|
||||
|
||||
deploy_gh:
|
||||
permissions:
|
||||
contents: write
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
ruby-version: 2.5
|
||||
@@ -33,14 +51,6 @@ jobs:
|
||||
|
||||
- run: bundle exec middleman build
|
||||
|
||||
- name: Push to Docker Hub
|
||||
uses: docker/build-push-action@v1
|
||||
with:
|
||||
username: ${{ secrets.DOCKER_USERNAME }}
|
||||
password: ${{ secrets.DOCKER_ACCESS_KEY }}
|
||||
repository: slatedocs/slate
|
||||
tag_with_ref: true
|
||||
|
||||
- name: Deploy
|
||||
uses: peaceiris/actions-gh-pages@v3.7.0-8
|
||||
with:
|
||||
|
||||
Reference in New Issue
Block a user