Skip to content

Commit

Permalink
Merge pull request #243 from notional-labs/ducnt/permission
Browse files Browse the repository at this point in the history
Add permission to fix problem related to ghcr image
  • Loading branch information
vuong177 authored Sep 26, 2023
2 parents c0b3ea4 + 3ca9c6a commit 9ee6c04
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/interchaintest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ on:
branches:
- main

permissions:
contents: read
packages: write

jobs:
build-and-push-image:
runs-on: ubuntu-latest
Expand All @@ -15,7 +19,7 @@ jobs:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to GitHub Container Registry
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/push_docker_images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@ on:
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+' # ignore rc

permissions:
contents: read
packages: write

jobs:
feeapp-images:
runs-on: ubuntu-latest
Expand All @@ -34,7 +39,7 @@ jobs:
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to GitHub Container Registry
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
release:
types: [created]

permissions:
contents: read
packages: write

jobs:
release:
permissions: write-all
Expand Down

0 comments on commit 9ee6c04

Please sign in to comment.