diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b05f795..bef3871 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -13,6 +13,6 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-python@v4 with: - python-version: "3.7" + python-version: "3.x" - name: lint run: make lint diff --git a/.github/workflows/selftest.yml b/.github/workflows/selftest.yml index cc1d360..06798f2 100644 --- a/.github/workflows/selftest.yml +++ b/.github/workflows/selftest.yml @@ -13,16 +13,27 @@ permissions: jobs: selftest: - runs-on: ubuntu-latest + strategy: + matrix: + os: + - ubuntu-latest + - macos-latest + - windows-latest + runs-on: ${{ matrix.os }} if: (github.event_name != 'pull_request') || !github.event.pull_request.head.repo.fork steps: - uses: actions/checkout@v3 + - uses: actions/setup-python@v4 + if: ${{ matrix.os != 'ubuntu-latest' }} + with: + python-version: "3.x" - name: Sign artifact and publish signature uses: ./ id: sigstore-python with: inputs: ./test/artifact.txt - name: Check outputs + shell: bash run: | [[ -f ./test/artifact.txt.sigstore ]] || exit 1 diff --git a/action.py b/action.py index d5719e7..23044f5 100755 --- a/action.py +++ b/action.py @@ -280,16 +280,16 @@ def _fatal_help(msg): with Path(_github_env).open("a") as gh_env: # Multiline values must match the following syntax: # - # {name}<<{delimiter} - # {value} - # {delimiter} - gh_env.write( - "GHA_SIGSTORE_PYTHON_INTERNAL_SIGNING_ARTIFACTS<