diff --git a/.github/workflows/sync-codeql-cli.yml b/.github/workflows/sync-codeql-cli.yml index d47d6f7c2b78..84f7c550dbd1 100644 --- a/.github/workflows/sync-codeql-cli.yml +++ b/.github/workflows/sync-codeql-cli.yml @@ -25,7 +25,7 @@ concurrency: cancel-in-progress: true jobs: - generate-decorated-files: + generate-codeql-files: if: github.repository == 'github/docs-internal' runs-on: ubuntu-latest steps: @@ -43,6 +43,7 @@ jobs: with: # By default, only the most recent commit of the `main` branch # will be checked out + token: ${{ secrets.DOCS_BOT_FR }} repository: github/semmle-code path: semmle-code ref: ${{ github.event.inputs.SOURCE_BRANCH }} @@ -67,6 +68,7 @@ jobs: sudo dpkg -i pandoc-3.0.1-1-amd64.deb # Output the pandoc version installed pandoc -v + rm pandoc-3.0.1-1-amd64.deb - name: Sync the CodeQL CLI data run: | @@ -82,8 +84,9 @@ jobs: run: | # If nothing to commit, exit now. It's fine. No orphans. changes=$(git diff --name-only | wc -l) - if [[ $changes -eq 0 ]]; then - echo "There are no changes to commit after running src/rest/scripts/update-files.js. Exiting..." + untracked=$(git status --untracked-files --short | wc -l) + if [[ $changes -eq 0 ]] && [[ $untracked -eq 0 ]]; then + echo "There are no changes to commit after running src/codeql/scripts/sync.js. Exiting..." exit 0 fi diff --git a/.prettierignore b/.prettierignore index 2802f7d8a872..26be76badc30 100644 --- a/.prettierignore +++ b/.prettierignore @@ -1,6 +1,11 @@ -includes/ data/release-notes/ script/bookmarklets/ /.next/ + +# jest --coverage option /.coverage /coverage + +# Automated content source +rest-api-description +semmle-code diff --git a/content/rest/repos/lfs.md b/content/rest/repos/lfs.md index af0268a8251c..4503b1267b1e 100644 --- a/content/rest/repos/lfs.md +++ b/content/rest/repos/lfs.md @@ -24,15 +24,14 @@ People with admin access to a repository can use these endpoints. Usage of {% data variables.large_files.product_name_short %} is subject to billing. For more information, see "[AUTOTITLE](/billing/managing-billing-for-git-large-file-storage/about-billing-for-git-large-file-storage)." -If you want to use these endpoints for a repository that belongs to an organization, your role must provide you with access to the organization's{% ifversion ghec %} or enterprise's{% endif %} billing.{% ifversion fpt %} For more information, see "[AUTOTITLE](/organizations/managing-peoples-access-to-your-organization-with-roles/roles-in-an-organization#organization-owners)."{% endif %} +If you want to use these endpoints for a repository that belongs to an organization, you must have admin access to the repository (which can be inherited as an organization owner), and your role must also provide you with access to the organization's billing. {% ifversion ghec %} -| Repository ownership | Required repository access | Required role | More information | -| :- | :- | :- | :- | -| Personal account | Admin | N/A | N/A | -|