fix: standardize SAFE_CHAIN_MINIMUM_PACKAGE_AGE_HOURS usage across wo… #20
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: Test Action | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: | |
| - main | |
| env: | |
| SAFE_CHAIN_MINIMUM_PACKAGE_AGE_HOURS: 0 | |
| FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true | |
| SAFE_CHAIN_VERSION: "1.4.7" | |
| SAFE_CHAIN_SHA256: "54c750232d149106ecf4f5f28fee82ba49d2428f1e411e0ed961c0263ae19eaf" | |
| permissions: | |
| id-token: write | |
| contents: read | |
| jobs: | |
| test: | |
| name: Integration test | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - name: Setup Bun | |
| uses: oven-sh/setup-bun@735343b667d3e6f658f44d0eca948eb6282f2b76 # v2.0.2 | |
| - name: Install safe-chain | |
| run: | | |
| curl -fsSL "https://github.com/AikidoSec/safe-chain/releases/download/${SAFE_CHAIN_VERSION}/install-safe-chain.sh" \ | |
| -o install-safe-chain.sh | |
| echo "${SAFE_CHAIN_SHA256} install-safe-chain.sh" | sha256sum --check | |
| sh install-safe-chain.sh --ci | |
| - name: Install dependencies | |
| run: bun install | |
| env: | |
| SAFE_CHAIN_MINIMUM_PACKAGE_AGE_HOURS: 0 | |
| - name: Configure AWS credentials (OIDC) | |
| uses: aws-actions/configure-aws-credentials@ec61189d14ec14c8efccab744f656cffd0e33f37 # v6.1.0 | |
| with: | |
| role-to-assume: ${{ secrets.AWS_ROLE_ARN }} | |
| aws-region: ${{ secrets.AWS_REGION }} | |
| - name: Run SSM command | |
| uses: ./ | |
| with: | |
| aws-region: ${{ secrets.AWS_REGION }} | |
| instance-ids: ${{ secrets.INSTANCE_ID }} | |
| working-directory: /home/ec2-user | |
| comment: aws-ssm-action CI test | |
| command: | | |
| echo "Hello from GitHub Actions!" >> logs.txt | |
| echo $(date) >> logs.txt | |
| cat logs.txt |