Set persist-credentials: false on actions/checkout
By default, actions/checkout persists its auth token so later git commands in the job are authenticated. The actions/checkout README: “The auth token is persisted in the local git config. This enables your scripts to run authenticated git commands. The token is removed during post-job cleanup. Set `persist-credentials: false` to opt-out.” Since Checkout v6 the credentials live in a separate file under $RUNNER_TEMP instead of directly in .git/config, but they are…









