chore(deps): lock file maintenance #116
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
| # Workflow to checkout repository | |
| name: Test action action-checkout | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| workflow_dispatch: | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| permissions: | |
| contents: read # for checkout | |
| jobs: | |
| test-checkout-persist-credentials-default: | |
| name: test-persist-credentials-default | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: checkout-local-actions | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| with: | |
| fetch-depth: 0 | |
| persist-credentials: false | |
| - uses: ./action-templates/actions/action-checkout | |
| - name: persist-credentials-default | |
| run: | | |
| for file in "$RUNNER_TEMP"/git-credentials-*.config | |
| do | |
| if [ -e "$file" ]; then | |
| echo "Detected credential file" | |
| exit 1 | |
| fi | |
| done | |
| test-checkout-persist-credentials-false: | |
| name: test-persist-credentials-false | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: checkout-local-actions | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| with: | |
| fetch-depth: 0 | |
| persist-credentials: false | |
| - uses: ./action-templates/actions/action-checkout | |
| with: | |
| persist-credentials: false | |
| - name: persist-credentials-false | |
| run: | | |
| for file in "$RUNNER_TEMP"/git-credentials-*.config | |
| do | |
| if [ -e "$file" ]; then | |
| echo "Detected credential file" | |
| exit 1 | |
| fi | |
| done | |
| test-checkout-persist-credentials-true: | |
| name: test-persist-credentials-true | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: checkout-local-actions | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| with: | |
| fetch-depth: 0 | |
| persist-credentials: false | |
| - uses: ./action-templates/actions/action-checkout | |
| with: | |
| persist-credentials: true | |
| - name: persist-credentials-true | |
| run: | | |
| for file in "$RUNNER_TEMP"/git-credentials-*.config | |
| do | |
| if [ ! -e "$file" ]; then | |
| echo "Couldn't detect credential file" | |
| exit 1 | |
| fi | |
| done |