-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add correct permissions to create a release. (#134)
* 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
Showing
5 changed files
with
11 additions
and
36 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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: | | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|