| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 8159d0c commit 381eb04
16 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -55,6 +55,8 @@ jobs: | |||
| 55 | 55 | if: needs.check_source.outputs.run_tests == 'true' | |
| 56 | 56 | steps: | |
| 57 | 57 | - uses: actions/checkout@v4 | |
| 58 | + with: | ||
| 59 | + persist-credentials: false | ||
| 58 | 60 | - uses: actions/setup-python@v5 | |
| 59 | 61 | - name: Install dependencies | |
| 60 | 62 | run: | | |
@@ -109,6 +111,7 @@ jobs: | |||
| 109 | 111 | - uses: actions/checkout@v4 | |
| 110 | 112 | with: | |
| 111 | 113 | fetch-depth: 1 | |
| 114 | + persist-credentials: false | ||
| 112 | 115 | - name: Runner image version | |
| 113 | 116 | run: echo "IMAGE_VERSION=${ImageVersion}" >> $GITHUB_ENV | |
| 114 | 117 | - name: Check Autoconf and aclocal versions | |
@@ -145,6 +148,8 @@ jobs: | |||
| 145 | 148 | if: needs.check_source.outputs.run_tests == 'true' | |
| 146 | 149 | steps: | |
| 147 | 150 | - uses: actions/checkout@v4 | |
| 151 | + with: | ||
| 152 | + persist-credentials: false | ||
| 148 | 153 | - uses: actions/setup-python@v5 | |
| 149 | 154 | with: | |
| 150 | 155 | python-version: '3.x' | |
@@ -299,6 +304,8 @@ jobs: | |||
| 299 | 304 | LD_LIBRARY_PATH: ${{ github.workspace }}/multissl/openssl/${{ matrix.openssl_ver }}/lib | |
| 300 | 305 | steps: | |
| 301 | 306 | - uses: actions/checkout@v4 | |
| 307 | + with: | ||
| 308 | + persist-credentials: false | ||
| 302 | 309 | - name: Runner image version | |
| 303 | 310 | run: echo "IMAGE_VERSION=${ImageVersion}" >> $GITHUB_ENV | |
| 304 | 311 | - name: Restore config.cache | |
@@ -351,6 +358,8 @@ jobs: | |||
| 351 | 358 | PYTHONSTRICTEXTENSIONBUILD: 1 | |
| 352 | 359 | steps: | |
| 353 | 360 | - uses: actions/checkout@v4 | |
| 361 | + with: | ||
| 362 | + persist-credentials: false | ||
| 354 | 363 | - name: Register gcc problem matcher | |
| 355 | 364 | run: echo "::add-matcher::.github/problem-matchers/gcc.json" | |
| 356 | 365 | - name: Install dependencies | |
@@ -433,7 +442,7 @@ jobs: | |||
| 433 | 442 | # | |
| 434 | 443 | # (GH-104097) test_sysconfig is skipped because it has tests that are | |
| 435 | 444 | # failing when executed from inside a virtual environment. | |
| 436 | - ${{ env.VENV_PYTHON }} -m test \ | ||
| 445 | + "${VENV_PYTHON}" -m test \ | ||
| 437 | 446 | -W \ | |
| 438 | 447 | -o \ | |
| 439 | 448 | -j4 \ | |
@@ -465,6 +474,8 @@ jobs: | |||
| 465 | 474 | ASAN_OPTIONS: detect_leaks=0:allocator_may_return_null=1:handle_segv=0 | |
| 466 | 475 | steps: | |
| 467 | 476 | - uses: actions/checkout@v4 | |
| 477 | + with: | ||
| 478 | + persist-credentials: false | ||
| 468 | 479 | - name: Runner image version | |
| 469 | 480 | run: echo "IMAGE_VERSION=${ImageVersion}" >> $GITHUB_ENV | |
| 470 | 481 | - name: Restore config.cache | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -10,16 +10,16 @@ on: | |||
| 10 | 10 | - 'Doc/**' | |
| 11 | 11 | - '.github/workflows/doc.yml' | |
| 12 | 12 | ||
| 13 | - permissions: | ||
| 14 | - pull-requests: write | ||
| 15 | - | ||
| 16 | 13 | concurrency: | |
| 17 | 14 | group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | |
| 18 | 15 | cancel-in-progress: true | |
| 19 | 16 | ||
| 20 | 17 | jobs: | |
| 21 | 18 | documentation-links: | |
| 22 | 19 | runs-on: ubuntu-latest | |
| 20 | + permissions: | ||
| 21 | + pull-requests: write | ||
| 22 | + | ||
| 23 | 23 | steps: | |
| 24 | 24 | - uses: readthedocs/actions/preview@v1 | |
| 25 | 25 | with: | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -20,6 +20,8 @@ jobs: | |||
| 20 | 20 | ||
| 21 | 21 | steps: | |
| 22 | 22 | - uses: actions/checkout@v4 | |
| 23 | + with: | ||
| 24 | + persist-credentials: false | ||
| 23 | 25 | - uses: actions/setup-python@v5 | |
| 24 | 26 | with: | |
| 25 | 27 | python-version: "3.x" | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -31,6 +31,8 @@ jobs: | |||
| 31 | 31 | timeout-minutes: 10 | |
| 32 | 32 | steps: | |
| 33 | 33 | - uses: actions/checkout@v4 | |
| 34 | + with: | ||
| 35 | + persist-credentials: false | ||
| 34 | 36 | - uses: actions/setup-python@v5 | |
| 35 | 37 | with: | |
| 36 | 38 | python-version: "3.x" | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -4,15 +4,14 @@ on: | |||
| 4 | 4 | pull_request: | |
| 5 | 5 | types: [opened, reopened, labeled, unlabeled, synchronize] | |
| 6 | 6 | ||
| 7 | - permissions: | ||
| 8 | - issues: write | ||
| 9 | - pull-requests: write | ||
| 10 | - | ||
| 11 | 7 | jobs: | |
| 12 | 8 | label: | |
| 13 | 9 | name: DO-NOT-MERGE / unresolved review | |
| 14 | 10 | if: github.repository_owner == 'python' | |
| 15 | 11 | runs-on: ubuntu-latest | |
| 12 | + permissions: | ||
| 13 | + issues: write | ||
| 14 | + pull-requests: write | ||
| 16 | 15 | timeout-minutes: 10 | |
| 17 | 16 | ||
| 18 | 17 | steps: | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -61,6 +61,8 @@ jobs: | |||
| 61 | 61 | - run: >- | |
| 62 | 62 | echo '${{ github.event_name }}' | |
| 63 | 63 | - uses: actions/checkout@v4 | |
| 64 | + with: | ||
| 65 | + persist-credentials: false | ||
| 64 | 66 | - name: Check for source changes | |
| 65 | 67 | id: check | |
| 66 | 68 | run: | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -19,12 +19,14 @@ jobs: | |||
| 19 | 19 | env: | |
| 20 | 20 | branch_base: 'origin/${{ github.event.pull_request.base.ref }}' | |
| 21 | 21 | branch_pr: 'origin/${{ github.event.pull_request.head.ref }}' | |
| 22 | + commits: ${{ github.event.pull_request.commits }} | ||
| 22 | 23 | refspec_base: '+${{ github.event.pull_request.base.sha }}:remotes/origin/${{ github.event.pull_request.base.ref }}' | |
| 23 | 24 | refspec_pr: '+${{ github.event.pull_request.head.sha }}:remotes/origin/${{ github.event.pull_request.head.ref }}' | |
| 24 | 25 | steps: | |
| 25 | 26 | - name: 'Check out latest PR branch commit' | |
| 26 | 27 | uses: actions/checkout@v4 | |
| 27 | 28 | with: | |
| 29 | + persist-credentials: false | ||
| 28 | 30 | ref: >- | |
| 29 | 31 | ${{ | |
| 30 | 32 | github.event_name == 'pull_request' | |
@@ -36,15 +38,15 @@ jobs: | |||
| 36 | 38 | if: github.event_name == 'pull_request' | |
| 37 | 39 | run: | | |
| 38 | 40 | # Fetch enough history to find a common ancestor commit (aka merge-base): | |
| 39 | - git fetch origin ${{ env.refspec_pr }} --depth=$(( ${{ github.event.pull_request.commits }} + 1 )) \ | ||
| 41 | + git fetch origin "${refspec_pr}" --depth=$(( commits + 1 )) \ | ||
| 40 | 42 | --no-tags --prune --no-recurse-submodules | |
| 41 | 43 | ||
| 42 | 44 | # This should get the oldest commit in the local fetched history (which may not be the commit the PR branched from): | |
| 43 | - COMMON_ANCESTOR=$( git rev-list --first-parent --max-parents=0 --max-count=1 ${{ env.branch_pr }} ) | ||
| 45 | + COMMON_ANCESTOR=$( git rev-list --first-parent --max-parents=0 --max-count=1 "${branch_pr}" ) | ||
| 44 | 46 | DATE=$( git log --date=iso8601 --format=%cd "${COMMON_ANCESTOR}" ) | |
| 45 | 47 | ||
| 46 | 48 | # Get all commits since that commit date from the base branch (eg: master or main): | |
| 47 | - git fetch origin ${{ env.refspec_base }} --shallow-since="${DATE}" \ | ||
| 49 | + git fetch origin "${refspec_base}" --shallow-since="${DATE}" \ | ||
| 48 | 50 | --no-tags --prune --no-recurse-submodules | |
| 49 | 51 | - name: 'Set up Python' | |
| 50 | 52 | uses: actions/setup-python@v5 | |
@@ -66,7 +68,7 @@ jobs: | |||
| 66 | 68 | if: github.event_name == 'pull_request' | |
| 67 | 69 | run: | | |
| 68 | 70 | python Doc/tools/check-warnings.py \ | |
| 69 | - --annotate-diff '${{ env.branch_base }}' '${{ env.branch_pr }}' \ | ||
| 71 | + --annotate-diff "${branch_base}" "${branch_pr}" \ | ||
| 70 | 72 | --fail-if-regression \ | |
| 71 | 73 | --fail-if-improved \ | |
| 72 | 74 | --fail-if-new-news-nit | |
@@ -78,6 +80,8 @@ jobs: | |||
| 78 | 80 | timeout-minutes: 60 | |
| 79 | 81 | steps: | |
| 80 | 82 | - uses: actions/checkout@v4 | |
| 83 | + with: | ||
| 84 | + persist-credentials: false | ||
| 81 | 85 | - name: 'Set up Python' | |
| 82 | 86 | uses: actions/setup-python@v5 | |
| 83 | 87 | with: | |
@@ -96,6 +100,8 @@ jobs: | |||
| 96 | 100 | timeout-minutes: 60 | |
| 97 | 101 | steps: | |
| 98 | 102 | - uses: actions/checkout@v4 | |
| 103 | + with: | ||
| 104 | + persist-credentials: false | ||
| 99 | 105 | - uses: actions/cache@v4 | |
| 100 | 106 | with: | |
| 101 | 107 | path: ~/.cache/pip | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -28,6 +28,8 @@ jobs: | |||
| 28 | 28 | runs-on: ${{ inputs.os }} | |
| 29 | 29 | steps: | |
| 30 | 30 | - uses: actions/checkout@v4 | |
| 31 | + with: | ||
| 32 | + persist-credentials: false | ||
| 31 | 33 | - name: Runner image version | |
| 32 | 34 | run: echo "IMAGE_VERSION=${ImageVersion}" >> $GITHUB_ENV | |
| 33 | 35 | - name: Restore config.cache | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -15,8 +15,12 @@ jobs: | |||
| 15 | 15 | name: 'Thread sanitizer' | |
| 16 | 16 | runs-on: ubuntu-22.04 | |
| 17 | 17 | timeout-minutes: 60 | |
| 18 | + env: | ||
| 19 | + OPTIONS: ${{ inputs.options }} | ||
| 18 | 20 | steps: | |
| 19 | 21 | - uses: actions/checkout@v4 | |
| 22 | + with: | ||
| 23 | + persist-credentials: false | ||
| 20 | 24 | - name: Runner image version | |
| 21 | 25 | run: echo "IMAGE_VERSION=${ImageVersion}" >> $GITHUB_ENV | |
| 22 | 26 | - name: Restore config.cache | |
@@ -44,7 +48,7 @@ jobs: | |||
| 44 | 48 | save: ${{ github.event_name == 'push' }} | |
| 45 | 49 | max-size: "200M" | |
| 46 | 50 | - name: Configure CPython | |
| 47 | - run: ${{ inputs.options }} | ||
| 51 | + run: "${OPTIONS}" | ||
| 48 | 52 | - name: Build CPython | |
| 49 | 53 | run: make -j4 | |
| 50 | 54 | - name: Display build info | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -26,6 +26,8 @@ jobs: | |||
| 26 | 26 | PYTHONSTRICTEXTENSIONBUILD: 1 | |
| 27 | 27 | steps: | |
| 28 | 28 | - uses: actions/checkout@v4 | |
| 29 | + with: | ||
| 30 | + persist-credentials: false | ||
| 29 | 31 | - name: Register gcc problem matcher | |
| 30 | 32 | run: echo "::add-matcher::.github/problem-matchers/gcc.json" | |
| 31 | 33 | - name: Install dependencies | |
| Back | FazBrowse Home | New Git URL |
0 commit comments