diff --git a/.github/actions/test/action.yaml b/.github/actions/test/action.yaml index c8e4a41..b6ee469 100644 --- a/.github/actions/test/action.yaml +++ b/.github/actions/test/action.yaml @@ -1,13 +1,16 @@ --- name: Test Composite Action description: test how composite actions work +inputs: + TEST_SECRET: + description: Secret for testing purposes + required: true runs: using: composite steps: - name: clone repo uses: actions/checkout@v4 - name: Use a secret - env: - TEST_SECRET: ${{ secrets.TEST_SECRET }} + shell: bash run: |- - echo "The secret is ${TEST_SECRET}" + echo "The secret is ${{ inputs.TEST_SECRET }}" diff --git a/.github/workflows/test_codebuild.yaml b/.github/workflows/test_codebuild.yaml index 642f898..f891271 100644 --- a/.github/workflows/test_codebuild.yaml +++ b/.github/workflows/test_codebuild.yaml @@ -16,6 +16,8 @@ jobs: ls /opt - name: use-composite-action uses: ./.github/actions/test + with: + TEST_SECRET: ${{ secrets.TEST_SECRET }} # run-on-aws-container: # runs-on: # - codebuild-spacktainers-${{ github.run_id }}-${{ github.run_attempt }}