43 lines
1.1 KiB
YAML
43 lines
1.1 KiB
YAML
name: Test a branch on canary
|
|
on:
|
|
workflow_dispatch:
|
|
inputs:
|
|
COMMIT_SHA:
|
|
description: 'Commit SHA to be tested'
|
|
required: true
|
|
|
|
env:
|
|
COMMIT_SHA: ${{ github.event.inputs.COMMIT_SHA }}
|
|
defaults:
|
|
run:
|
|
shell: pwsh
|
|
|
|
permissions: # added using https://github.com/step-security/secure-workflows
|
|
contents: read
|
|
|
|
jobs:
|
|
update_tag:
|
|
name: Update the rc tag to ${{ github.event.inputs.COMMIT_SHA }} commit
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
contents: write
|
|
steps:
|
|
- uses: step-security/harden-runner@cba0d00b1fc9a034e1e642ea0f1103c282990604 # v1
|
|
with:
|
|
egress-policy: audit
|
|
allowed-endpoints:
|
|
api.github.com:443
|
|
github.com:443
|
|
|
|
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v2
|
|
- name: Update the rc tag
|
|
uses: step-security/publish-action@b438f840875fdcb7d1de4fc3d1d30e86cf6acb5d
|
|
with:
|
|
rc-sha: ${{ env.COMMIT_SHA }}
|
|
rc: true
|
|
|
|
- name: Canary test
|
|
uses: docker://ghcr.io/step-security/integration-test/int:latest
|
|
env:
|
|
PAT: ${{ secrets.PAT }}
|
|
canary: true
|