Skip to content

Commit

Permalink
Using secrets instead of vars
Browse files Browse the repository at this point in the history
  • Loading branch information
dotemacs committed Jul 24, 2024
1 parent fc8f6c9 commit aba4f72
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions .github/workflows/build_image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,20 +16,11 @@ permissions:
id-token: write # for JWT request
contents: read # for actions/checkout

env:
SOMEVAR: ${{ vars.FOO }}


jobs:
docker-image-build:
name: docker-image-build
runs-on: ubuntu-latest
steps:
- name: check if vars are being read right
run: |
echo "Start-${{ env.SOMEVAR }}-end."
echo "Another: ${{ vars.FOO }}."
printenv
- name: Setup tmate session
uses: mxschmitt/action-tmate@v3
if: ${{ github.event_name == 'workflow_dispatch' && inputs.debug_enabled }}
Expand All @@ -40,7 +31,7 @@ jobs:
- name: Configure AWS Credentials
uses: aws-actions/[email protected]
with:
role-to-assume: ${{ env.AWS_ROLE_TO_ASSUME }}
role-to-assume: ${{ secrets.AWS_ROLE_TO_ASSUME }}
aws-region: eu-west-2
audience: sts.amazonaws.com
role-session-name: github-aws-access
Expand Down

0 comments on commit aba4f72

Please sign in to comment.