Skip to content

Add branding and prepare the action for the marketplace (#25) #3

Add branding and prepare the action for the marketplace (#25)

Add branding and prepare the action for the marketplace (#25) #3

Workflow file for this run

name: Test Action
on:
push:
env:
allow_showing_creds_in_test_repo: ${{ github.repository != 'tracebit-com/tracebit-community-action' }}
jobs:
test-sync:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Configure credentials
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
- name: Run pre step
run: node dist/pre.js
env:
INPUT_CUSTOMER-ID: ${{ vars.SECURITY_CUSTOMER_ID }}
INPUT_API-TOKEN: ${{ secrets.SECURITY_API_TOKEN }}
INPUT_PROFILE: engineer
INPUT_PROFILE-REGION: us-east-1
- name: Run main step
run: sleep 2 && node dist/index.js
env:
INPUT_CUSTOMER-ID: ${{ vars.SECURITY_CUSTOMER_ID }}
INPUT_API-TOKEN: ${{ secrets.SECURITY_API_TOKEN }}
INPUT_PROFILE: engineer
INPUT_PROFILE-REGION: us-east-1
- name: Run post step
run: node dist/post.js
- name: Show env
if: ${{ env.allow_showing_creds_in_test_repo == 'true' }}
run: printenv
- name: Show aws config
if: ${{ env.allow_showing_creds_in_test_repo == 'true' }}
run: |
cat ~/.aws/config
cat ~/.aws/credentials
- name: Show ssh config
if: ${{ env.allow_showing_creds_in_test_repo == 'true' }}
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)"
echo "---"
cat ~/.ssh/prod_deploy || echo "(no private key)"
cat ~/.ssh/prod_deploy.pub || echo "(no public key)"
test-async:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Configure credentials
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
- name: Run pre step
run: node dist/pre.js
env:
INPUT_CUSTOMER-ID: ${{ vars.SECURITY_CUSTOMER_ID }}
INPUT_API-TOKEN: ${{ secrets.SECURITY_API_TOKEN }}
INPUT_PROFILE: engineer
INPUT_PROFILE-REGION: us-east-1
INPUT_ASYNC: true
- name: Run main step
run: sleep 2 && node dist/index.js
env:
INPUT_CUSTOMER-ID: ${{ vars.SECURITY_CUSTOMER_ID }}
INPUT_API-TOKEN: ${{ secrets.SECURITY_API_TOKEN }}
INPUT_PROFILE: engineer
INPUT_PROFILE-REGION: us-east-1
INPUT_ASYNC: true
- name: Run post step
run: node dist/post.js
- name: Show env
if: ${{ env.allow_showing_creds_in_test_repo == 'true' }}
run: printenv
- name: Show aws config
if: ${{ env.allow_showing_creds_in_test_repo == 'true' }}
run: |
cat ~/.aws/config
cat ~/.aws/credentials
- name: Show ssh config
if: ${{ env.allow_showing_creds_in_test_repo == 'true' }}
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)"
echo "---"
cat ~/.ssh/prod_deploy || echo "(no private key)"
cat ~/.ssh/prod_deploy.pub || echo "(no public key)"