| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
| Back | FazBrowse Home | New Git URL |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality⚠️ Potential issue | 🟡 Minor
🧩 Analysis chain🏁 Script executed:
find .github -name "update-doc-db.yml" -type fRepository: RustPython/RustPython
Length of output: 100
🏁 Script executed:
cat -n .github/workflows/update-doc-db.yml | head -120Repository: RustPython/RustPython
Length of output: 4365
🏁 Script executed:
ls -la .github/workflows/ | grep -i updateRepository: RustPython/RustPython
Length of output: 132
🏁 Script executed:
Repository: RustPython/RustPython
Length of output: 102
🏁 Script executed:
git ls-files .github/workflows/ | head -20Repository: RustPython/RustPython
Length of output: 264
🏁 Script executed:
Repository: RustPython/RustPython
Length of output: 887
🏁 Script executed:
Repository: RustPython/RustPython
Length of output: 287
🏁 Script executed:
rg -l "Commit and push (non-main branches only)" --type yamlRepository: RustPython/RustPython
Length of output: 47
🏁 Script executed:
rg "AUTO_COMMIT_PAT" --type yamlRepository: RustPython/RustPython
Length of output: 47
🏁 Script executed:
rg "Update doc DB for CPython" --type yamlRepository: RustPython/RustPython
Length of output: 47
🌐 Web query:
GitHub Actions sparse checkout git operations authentication
💡 Result:
Summary + quick examples
Example:
with:
fetch-depth: 0
sparse-checkout: |
.github
src
sparse-checkout-cone-mode: true
(cite: actions/checkout). [1]
Example push with GITHUB_TOKEN:
permissions:
contents: write
jobs:
push:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
with:
persist-credentials: true
fetch-depth: 0
sparse-checkout: |
README.md
- run: |
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
# make changes...
git add .
git commit -m "Update"
git push origin HEAD:main
If you need to use a PAT (for cross-repo write, finer scopes, or to trigger new workflows), store it as a secret and set actions/checkout.token or configure git remote HTTPS with that PAT. [1][2]
References
[1] actions/checkout README (sparse-checkout inputs & usage).
[2] GitHub Docs — GITHUB_TOKEN and using it for authentication in workflows.
[3] actions/checkout GitHub issues (sparse-checkout / git-version caveats).
🏁 Script executed:
Repository: RustPython/RustPython
Length of output: 509
🏁 Script executed:
Repository: RustPython/RustPython
Length of output: 509
Ensure the AUTO_COMMIT_PAT secret is configured in repository settings with write access.
The merge job requires the AUTO_COMMIT_PAT secret to authenticate git push operations. Configure this secret in your repository settings with appropriate permissions to push commits to non-main branches. The workflow correctly uses the full repository checkout (without sparse checkout) for the merge and commit step, so git operations will work as expected.
🤖 Prompt for AI Agents.github/workflows/update-doc-db.yml lines 99-108: the workflow assumes a push-able token but doesn't ensure one is provided; configure the AUTO_COMMIT_PAT secret in the repository settings with repo write permissions and update the workflow to use it when pushing (for example export a GIT_TOKEN env from secrets.AUTO_COMMIT_PAT and run git remote set-url origin https://x-access-token:${GIT_TOKEN}@github.com/${{ github.repository }}.git before git push); also ensure the workflow has repository write permissions enabled so the push succeeds.Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.