diff --git a/.github/workflows/cve_scan.yml b/.github/workflows/cve_scan.yml index 939d486e7e..8eca3adc32 100644 --- a/.github/workflows/cve_scan.yml +++ b/.github/workflows/cve_scan.yml @@ -12,8 +12,9 @@ jobs: timeout-minutes: 10 steps: - uses: actions/checkout@v2 - - uses: actions/setup-python@v2 + - uses: actions/setup-python@v4 with: + python-version: '3.x' cache: 'pip' cache-dependency-path: '**/requirements.txt' - name: Get date diff --git a/.github/workflows/formatting.yml b/.github/workflows/formatting.yml index 2d408f0015..bf8e334134 100644 --- a/.github/workflows/formatting.yml +++ b/.github/workflows/formatting.yml @@ -13,8 +13,9 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - - uses: actions/setup-python@v2 + - uses: actions/setup-python@v4 with: + python-version: '3.x' cache: 'pip' - name: Install cve-bin-tool run: | diff --git a/.github/workflows/linting.yml b/.github/workflows/linting.yml index 062eb601c3..6bfda0e071 100644 --- a/.github/workflows/linting.yml +++ b/.github/workflows/linting.yml @@ -15,8 +15,9 @@ jobs: tool: ['isort', 'black', 'pyupgrade', 'flake8', 'bandit', 'gitlint'] steps: - uses: actions/checkout@v2 - - uses: actions/setup-python@v2 + - uses: actions/setup-python@v4 with: + python-version: '3.x' cache: 'pip' - name: Install pre-commit run: | diff --git a/.github/workflows/testing.yml b/.github/workflows/testing.yml index 43bae6990c..7b98438e95 100644 --- a/.github/workflows/testing.yml +++ b/.github/workflows/testing.yml @@ -21,8 +21,9 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - - uses: actions/setup-python@v2 + - uses: actions/setup-python@v4 with: + python-version: '3.x' cache: 'pip' cache-dependency-path: 'doc/requirements.txt' - name: Install doc dependencies @@ -45,7 +46,7 @@ jobs: timeout-minutes: 20 steps: - uses: actions/checkout@v2 - - uses: actions/setup-python@v2 + - uses: actions/setup-python@v4 with: python-version: ${{ matrix.python }} cache: 'pip' @@ -92,7 +93,7 @@ jobs: LONG_TESTS: 1 steps: - uses: actions/checkout@v2 - - uses: actions/setup-python@v2 + - uses: actions/setup-python@v4 with: python-version: '3.8' cache: 'pip' @@ -162,7 +163,7 @@ jobs: PYTHONIOENCODING: 'utf8' steps: - uses: actions/checkout@v2 - - uses: actions/setup-python@v2 + - uses: actions/setup-python@v4 with: python-version: ${{ matrix.python }} cache: 'pip' diff --git a/.github/workflows/update-pre-commit.yml b/.github/workflows/update-pre-commit.yml index 0f65deb8c2..9713567e32 100644 --- a/.github/workflows/update-pre-commit.yml +++ b/.github/workflows/update-pre-commit.yml @@ -17,7 +17,9 @@ jobs: steps: - uses: actions/checkout@v2 - - uses: actions/setup-python@v2 + - uses: actions/setup-python@v4 + with: + python-version: '3.x' - name: Install pre-commit run: | diff --git a/doc/how_to_guides/cve_scanner_gh_action.md b/doc/how_to_guides/cve_scanner_gh_action.md index 775c642f7f..0fec67b627 100644 --- a/doc/how_to_guides/cve_scanner_gh_action.md +++ b/doc/how_to_guides/cve_scanner_gh_action.md @@ -30,9 +30,9 @@ jobs: # Let's first download dependencies for this action. - uses: actions/checkout@v2 - name: Set up Python - uses: actions/setup-python@v2 + uses: actions/setup-python@v4 with: - python-version: 3.8 + python-version: '3.x' # This second step is unnecessary but highly recommended because # It will cache database and saves time re-downloading it if database isn't stale. - name: get cached python packages diff --git a/doc/how_to_guides/cve_scanner_gh_action.yml b/doc/how_to_guides/cve_scanner_gh_action.yml index 591eb3fd3b..6d2d8bec54 100644 --- a/doc/how_to_guides/cve_scanner_gh_action.yml +++ b/doc/how_to_guides/cve_scanner_gh_action.yml @@ -16,9 +16,9 @@ jobs: # Let's first download dependencies for this action. - uses: actions/checkout@v2 - name: Set up Python - uses: actions/setup-python@v2 + uses: actions/setup-python@v4 with: - python-version: 3.8 + python-version: '3.x' # This second step is unnecessary but highly recommended because # It will cache database and saves time redownloading it if database isn't stale. - name: get cached python packages