Skip to content

Commit

Permalink
Merge pull request #1792 from itowlson/what-aws-credentials
Browse files Browse the repository at this point in the history
Skip AWS interaction on forks
  • Loading branch information
itowlson authored Sep 21, 2023
2 parents 09da960 + 358dbb5 commit 8ed10c2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -179,15 +179,15 @@ jobs:
tag: ${{ github.ref }}

- name: Configure AWS Credentials
if: runner.os == 'linux' && matrix.config.arch == 'amd64'
if: runner.os == 'linux' && matrix.config.arch == 'amd64' && ${{ github.repository_owner == 'fermyon' }}
uses: aws-actions/configure-aws-credentials@v1
with:
role-to-assume: arn:aws:iam::${{ secrets.AWS_ACCOUNT_ID }}:role/${{ secrets.SPIN_RELEASE_ARTIFACTS_REPO }}
role-session-name: spin-release-artifacts
aws-region: ${{ secrets.AWS_REGION }}

- name: Copy Binary to S3 - ${{ env.RELEASE_VERSION }}
if: runner.os == 'linux' && matrix.config.arch == 'amd64'
if: runner.os == 'linux' && matrix.config.arch == 'amd64' && ${{ github.repository_owner == 'fermyon' }}
run: |
aws s3 cp _dist/spin-${{ env.RELEASE_VERSION }}-${{ env.RUNNER_OS }}-${{ matrix.config.arch }}.tar.gz s3://${{ secrets.SPIN_RELEASE_ARTIFACTS_REPO }}/spin-${{ env.RELEASE_VERSION }}-${{ env.RUNNER_OS }}-${{ matrix.config.arch }}.tar.gz --acl public-read
Expand Down

0 comments on commit 8ed10c2

Please sign in to comment.