CI: Replace peter-evans/create-pull-request with gh pr create #68
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Copyright 2025 The Sigstore Authors | |
| # | |
| # Licensed under the Apache License, Version 2.0 (the "License"); | |
| # you may not use this file except in compliance with the License. | |
| # You may obtain a copy of the License at | |
| # | |
| # http://www.apache.org/licenses/LICENSE-2.0 | |
| # | |
| # Unless required by applicable law or agreed to in writing, software | |
| # distributed under the License is distributed on an "AS IS" BASIS, | |
| # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
| # See the License for the specific language governing permissions and | |
| # limitations under the License. | |
| name: Cross-version verify | |
| on: | |
| push: | |
| branches: | |
| - main | |
| - series/* | |
| pull_request: | |
| workflow_dispatch: | |
| permissions: {} | |
| jobs: | |
| sign: | |
| name: Sign | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0 | |
| with: | |
| persist-credentials: false | |
| - uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.0 | |
| with: | |
| python-version: "3.x" | |
| cache: "pip" | |
| cache-dependency-path: pyproject.toml | |
| - run: pip install . | |
| - name: Fetch testing oidc token | |
| uses: sigstore-conformance/extremely-dangerous-public-oidc-beacon@4a8befcc16064dac9e97f210948d226e5c869bdc # v1.0.0 | |
| - name: Sign | |
| run: | | |
| touch artifact | |
| python -m sigstore --staging sign --bundle artifact-rekor2.sigstore.json --identity-token $(cat oidc-token.txt) --rekor-version=2 artifact | |
| python -m sigstore --staging sign --bundle artifact-rekor1.sigstore.json --identity-token $(cat oidc-token.txt) --rekor-version=1 artifact | |
| - name: upload signature bundle | |
| uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0 | |
| with: | |
| name: bundle | |
| path: artifact*.sigstore.json | |
| if-no-files-found: error | |
| retention-days: 1 | |
| verify: | |
| name: Verify with ${{ matrix.version }} | |
| needs: [sign] | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false # Don't cancel other jobs if one fails | |
| matrix: | |
| version: [3.5.6, 3.6.6, 4.0.0, 4.1.0] | |
| steps: | |
| - uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.0 | |
| with: | |
| python-version: "3.x" | |
| - run: pip install sigstore==${{ matrix.version }} | |
| - uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6.0.0 | |
| with: | |
| name: bundle | |
| - run: touch artifact | |
| - name: Verify (Rekor v2) | |
| if: startsWith(matrix.version, '3.') != true | |
| run: | | |
| python -m sigstore --staging verify github --verbose \ | |
| --cert-identity "https://github.com/sigstore-conformance/extremely-dangerous-public-oidc-beacon/.github/workflows/extremely-dangerous-oidc-beacon.yml@refs/heads/main" \ | |
| --bundle artifact-rekor2.sigstore.json \ | |
| artifact | |
| - name: Verify (Rekor v1) | |
| run: | | |
| python -m sigstore --staging verify github --verbose \ | |
| --cert-identity "https://github.com/sigstore-conformance/extremely-dangerous-public-oidc-beacon/.github/workflows/extremely-dangerous-oidc-beacon.yml@refs/heads/main" \ | |
| --bundle artifact-rekor1.sigstore.json \ | |
| artifact |