Skip to content

Commit

Permalink
Add correct permissions to create a release. (#134)
Browse files Browse the repository at this point in the history
* Add correct permissions to create a release.

* Remove in-repo action and use shared action to configure gcloud and docker
  • Loading branch information
Thomas Thorogood authored Apr 4, 2022
1 parent 0736e53 commit 2b64f7b
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 36 deletions.
27 changes: 0 additions & 27 deletions .github/actions/configure-docker/action.yml

This file was deleted.

8 changes: 5 additions & 3 deletions .github/workflows/create-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,14 @@ jobs:
cancel-in-progress: false
permissions:
id-token: write
contents: read
# https://docs.github.com/en/rest/reference/releases#create-a-release
# Creating "Release" artifacts falls under "contents: write"
contents: write
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/configure-docker
- uses: UWIT-IAM/actions/configure-gcloud-docker@0.1
with:
gcr-token: ${{ secrets.GCR_TOKEN }}
gcloud-token: ${{ secrets.GCR_TOKEN }}
- name: Install poetry
uses: abatilo/[email protected]
- run: |
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ jobs:
steps:
- uses: actions/checkout@v3
- uses: abatilo/[email protected]
- uses: ./.github/actions/configure-docker
- uses: UWIT-IAM/actions/configure-gcloud-docker@0.1
with:
gcr-token: ${{ secrets.GCR_TOKEN }}
gcloud-token: ${{ secrets.GCR_TOKEN }}
- run: ./scripts/install-build-scripts.sh
name: Install common-build-scripts

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,9 @@ jobs:

- uses: abatilo/[email protected]

- uses: ./.github/actions/configure-docker
- uses: UWIT-IAM/actions/configure-gcloud-docker@0.1
with:
gcr-token: ${{ secrets.GCR_TOKEN }}
gcloud-token: ${{ secrets.GCR_TOKEN }}

- run: |
poetry run pip install tox uw-it-build-fingerprinter
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/scheduled-maintenance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ jobs:
steps:
- uses: actions/checkout@v3
- uses: abatilo/[email protected]
- uses: ./.github/actions/configure-docker
- uses: UWIT-IAM/actions/configure-gcloud-docker@0.1
with:
gcr-token: ${{ secrets.GCR_TOKEN }}
gcloud-token: ${{ secrets.GCR_TOKEN }}
- run: poetry update --lock
id: poetry-update
- run: poetry run tox
Expand Down

0 comments on commit 2b64f7b

Please sign in to comment.