diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index e9c2a79..0128917 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -46,6 +46,8 @@ jobs: with: path: ${{ matrix.earthfile }} target_args: --container ${{ env.CONTAINER }} --tag ${{ env.TAG }} + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Parse Earthfile reference id: parse run: | diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 35f4e4b..6718f95 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -39,6 +39,8 @@ jobs: with: artifact: ${{ env.OUTPUT }} path: ${{ matrix.earthfile }} + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Parse Earthfile reference id: parse run: | diff --git a/.github/workflows/run.yml b/.github/workflows/run.yml index 2b5929b..6cb71ba 100644 --- a/.github/workflows/run.yml +++ b/.github/workflows/run.yml @@ -34,4 +34,6 @@ jobs: - name: Run uses: ./forge/actions/run with: - path: ${{ matrix.earthfile }} \ No newline at end of file + path: ${{ matrix.earthfile }} + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file diff --git a/forge/cli/pkg/earthly/earthly.go b/forge/cli/pkg/earthly/earthly.go index a381e69..b30eb7e 100644 --- a/forge/cli/pkg/earthly/earthly.go +++ b/forge/cli/pkg/earthly/earthly.go @@ -70,7 +70,7 @@ func (e EarthlyExecutor) Run() (map[string]EarthlyExecutionResult, error) { if len(secrets) > 0 { var secretString []string for _, secret := range secrets { - e.logger.Info("Adding Earthly secret", "earthly_id", secret.Id, "value", secret.Value) + e.logger.Info("Adding Earthly secret", "earthly_id", secret.Id) secretString = append(secretString, fmt.Sprintf("%s=%s", secret.Id, secret.Value)) }