Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 7 additions & 6 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,16 @@ on:
required: true

jobs:

version-available:
uses: anchore/workflows/.github/workflows/check-version-available.yaml@4f25313f96311410cad4173f74617654a3e46d48 # v0.3.0
permissions:
contents: read # required for the reusable workflow to check out the repo and verify the version
with:
version: ${{ github.event.inputs.version }}

check-gate:
permissions:
checks: read # required for getting the status of specific check names
checks: read # required for getting the status of specific check names
uses: anchore/workflows/.github/workflows/check-gate.yaml@4f25313f96311410cad4173f74617654a3e46d48 # v0.3.0
with:
# these are checks that should be run on pull-request and merges to main.
Expand All @@ -33,15 +34,15 @@ jobs:

release:
needs: [check-gate, version-available]
environment: release # contains secrets needed for release
environment: release # contains secrets needed for release
runs-on: ubuntu-24.04
permissions:
contents: write # needed for creating github release objects
contents: write # needed for creating github release objects
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd #v6.0.2
with:
fetch-depth: 0 # we need the full history to reason about changelogs and tags
persist-credentials: true # needed for pushing a tag
fetch-depth: 0 # we need the full history to reason about changelogs and tags
persist-credentials: true # needed for pushing a tag

# setup checkout, go, go-make, binny, and cache go modules
- uses: anchore/go-make/.github/actions/setup@383ef7852b8ae43a30f424896b52479186d2ea4d # v0.1.0
Expand Down
Loading