Skip to content

.github/workflows/release: fix typo in bazel file name #25

.github/workflows/release: fix typo in bazel file name

.github/workflows/release: fix typo in bazel file name #25

Workflow file for this run

name: Release
on:
push:
tags: ['2[0-9][0-9][0-9]-[0-9][0-9]-[0-9][0-9]'] # yyyy-mm-dd
permissions:
contents: read
jobs:
create:
permissions:
# Required to create the release
# and upload the release assets.
contents: write
# Required for Sigstore signing.
id-token: write
runs-on: ubuntu-latest
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/[email protected]
- run: |
gh release create "${GITHUB_REF_NAME}" \
--generate-notes --latest --verify-tag \
--repo "${GITHUB_REPOSITORY}"
gh release download "${GITHUB_REF_NAME}" \
--archive tar.gz \
--repo "${GITHUB_REPOSITORY}"
gh release download "${GITHUB_REF_NAME}" \
--archive zip \
--repo "${GITHUB_REPOSITORY}"
shell: bash
- uses: sigstore/[email protected]
with:
# N.B. This is a whitespace-separated string!
inputs: '*.tar.gz *.zip'
- run: |
gh release upload "${GITHUB_REF_NAME}" \
*.tar.gz *.zip *.sigstore* \
--repo "${GITHUB_REPOSITORY}"
shell: bash
create-bazel:
needs: create
uses: ./.github/workflows/release-bazel.yml
with:
tag_name: ${{ github.ref_name }}
secrets:
BCR_PUBLISH_TOKEN: ${{ secrets.BCR_PUBLISH_TOKEN }}

Check failure on line 46 in .github/workflows/release.yml

View workflow run for this annotation

GitHub Actions / Release

Invalid workflow file

The workflow is not valid. .github/workflows/release.yml (Line: 46, Col: 26): Invalid secret, BCR_PUBLISH_TOKEN is not defined in the referenced workflow. .github/workflows/release.yml (Line: 40, Col: 3): Error calling workflow 'google/re2/.github/workflows/release-bazel.yml@932b308415a622428df2187522db1d273e507164'. The nested job 'release' is requesting 'attestations: write, contents: write, id-token: write', but is only allowed 'attestations: none, contents: read, id-token: none'.