tektoncd / tektoncd/operator

helm release action failed due to permissions issue

Open
#1,330 9 comments 4 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

kind/bug lifecycle/rotten
Dominant language
Go
Stars
608
Forks
263
Avg merge
1d 3h
Merged PRs (30d)
125

Description

Expected Behavior

helm release success

Actual Behavior

helm release failed after https://github.com/tektoncd/operator/actions/runs/2926038976 2022-08-25

So we only see https://github.com/tektoncd/operator/releases/tag/tekton-operator-0.61.0 but not 0.62.0 0.63.0 and 0.64.0

Steps to Reproduce the Problem

see the action failed log in latest one: https://github.com/tektoncd/operator/actions/runs/4134684022

Error: .github#L1
helm/chart-releaser-action@v1.5.0 is not allowed to be used in tektoncd/operator. Actions in this workflow must be: within a repository owned by tektoncd, created by GitHub, verified in the GitHub Marketplace, or matching the following: peter-evans/create-pull-request@*.

Additional Info

I think this is because the organization tektoncd has enabled option Allow specified actions and reusable workflows

we should add helm/chart-releaser-action@* like peter-evans/create-pull-request@*

Another thing is that if we want users to use chart directly helm repo add tekton-operator https://tektoncd.github.io/operator/, we need to open GitHub Pages.

https://github.com/helm/chart-releaser-action/blob/be16258da8010256c6e82849661221415f031968/README.md?plain=1#L12

In your repo, go to Settings/Pages. Change the `Source` `Branch` to `gh-pages`.

A typical example is https://github.com/kubernetes-sigs/metrics-server.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Review the workflow referenced at .github#L1 and compare it with the failed action run 4134684022, focusing on the helm/chart-releaser-action permission error. Check the organization action allowlist and the GitHub Pages settings described in the issue. Done means the release workflow completes and the Helm repository is available at the documented URL.

Written by the indexing model from the issue text.

Assessment

Tech stack
github-actions, helm
Domain
ci-cd, release
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.