Skip to content

chore: use secrets

chore: use secrets #18

name: Package Dart SDK
on:
workflow_dispatch:
push:
tags: ["flipt-client-dart-**"]
permissions:
contents: write
id-token: write
jobs:
setup:
runs-on: ubuntu-latest
outputs:
pub-token: ${{ steps.setup.outputs.pub-token }}
steps:
- id: setup
run: |
OIDC_TOKEN=$(curl -sLS "${ACTIONS_ID_TOKEN_REQUEST_URL}&audience=https://pub.dev" -H "User-Agent: actions/oidc-client" -H "Authorization: Bearer $ACTIONS_ID_TOKEN_REQUEST_TOKEN" | jq -r '.value')
echo "pub-token=$OIDC_TOKEN" >> $GITHUB_OUTPUT
build:
needs: setup
uses: ./.github/workflows/package-ffi-sdks.yml
with:
sdks: dart
engine-tag: "latest"
secrets:
PUB_TOKEN: ${{ needs.setup.outputs.pub-token }}

Check failure on line 29 in .github/workflows/package-dart-sdk.yml

View workflow run for this annotation

GitHub Actions / Package Dart SDK

Invalid workflow file

The workflow is not valid. .github/workflows/package-dart-sdk.yml (Line: 29, Col: 18): Invalid secret, PUB_TOKEN is not defined in the referenced workflow.