Update README.md (#31) #12
This file contains hidden or 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
| name: Example | |
| on: | |
| push: | |
| env: | |
| allow_showing_creds_in_test_repo: ${{ github.repository != 'tracebit-com/tracebit-community-action' }} | |
| permissions: | |
| contents: read # Needs to read the repo to simulate what actual usage is | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: false | |
| jobs: | |
| configure-credentials-example: | |
| name: Configure credentials example | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd | |
| with: | |
| persist-credentials: false | |
| - name: Configure credentials | |
| continue-on-error: true | |
| uses: tracebit-com/tracebit-community-action@d0a68cb29196eafce908de76ec596a7e9ca049da | |
| with: | |
| customer-id: ${{ vars.SECURITY_CUSTOMER_ID }} | |
| api-token: ${{ secrets.SECURITY_API_TOKEN }} | |
| profile: administrator | |
| profile-region: us-east-1 | |
| async: true | |
| - name: Show env | |
| if: ${{ env.allow_showing_creds_in_test_repo == 'true' }} | |
| run: printenv | |
| - name: Show aws config | |
| run: | | |
| cat ~/.aws/config | |
| cat ~/.aws/credentials | |
| - name: Show ssh config | |
| run: | | |
| cat ~/.ssh/config 2>/dev/null || echo "(no ssh config)" | |
| echo "---" | |
| ls -la ~/.ssh/prod_deploy ~/.ssh/prod_deploy.pub 2>/dev/null || echo "(no ssh keys)" |