From 86bb9595099ef5df6a6bd8ffc5a75d5b56ef6f36 Mon Sep 17 00:00:00 2001 From: Peli de Halleux Date: Sun, 11 Feb 2024 20:33:16 +0000 Subject: [PATCH] upgrade workflows --- .github/workflows/build.yml | 7 +++++-- .github/workflows/release.yml | 7 +++++-- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index cd38cff..8c17b51 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -7,15 +7,18 @@ on: jobs: build: runs-on: ubuntu-latest + permissions: + actions: read + contents: write strategy: matrix: python-version: ["3.7", "3.8", "3.9", "3.10"] name: Python ${{ matrix.python-version }} steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 with: fetch-depth: 0 - - uses: actions/setup-python@v2 + - uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} # Version range or exact version of a Python version to use, using SemVer's version range syntax architecture: "x64" # optional x64 or x86. Defaults to x64 if not specified diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 834098f..d06457d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -4,12 +4,15 @@ on: - main jobs: build: + permissions: + actions: read + contents: write runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 with: fetch-depth: 0 - - uses: actions/setup-python@v2 + - uses: actions/setup-python@v5 with: python-version: "3.7" # Version range or exact version of a Python version to use, using SemVer's version range syntax architecture: "x64" # optional x64 or x86. Defaults to x64 if not specified