Skip to content

Merge branch 'Dreadwitdastacc-Ifawole' into copilot/fix-devcontainer-… #40

Merge branch 'Dreadwitdastacc-Ifawole' into copilot/fix-devcontainer-…

Merge branch 'Dreadwitdastacc-Ifawole' into copilot/fix-devcontainer-… #40

name: Authenticated Checkout Example

Check failure on line 1 in .github/workflows/authenticated-checkout.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/authenticated-checkout.yml

Invalid workflow file

(Line: 18, Col: 13): Unrecognized named-value: 'secrets'. Located at position 1 within expression: secrets.PAT_TOKEN != ''
on:
workflow_dispatch:
jobs:
authenticated-checkout:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout using built-in token
uses: actions/checkout@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Checkout using PAT (optional)
if: secrets.PAT_TOKEN != ''
uses: actions/checkout@v4
with:
token: ${{ secrets.PAT_TOKEN }}
- name: Show repo status
run: |
echo "Remote:" && git remote -v
echo
echo "User config:" && git config --get user.name || true