Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deprecate unapproved GHA used in workflows #89

Closed
alexander-demicev opened this issue May 13, 2024 · 3 comments
Closed

Deprecate unapproved GHA used in workflows #89

alexander-demicev opened this issue May 13, 2024 · 3 comments
Assignees

Comments

@alexander-demicev
Copy link
Member

@yiannistri
Copy link

yiannistri commented May 14, 2024

In order to create PRs we can use either the gh cli (which should be installed by default on the runner) or the actions/github-script@v7 GHA:

- name: cli
  run: gh pr create -B main -H new-feature --title 'New feature' --body 'Created by Github action'
  env:
    GITHUB_TOKEN: ${{ secrets.CUSTOM_TOKEN }}

vs

- name: action
  uses: actions/github-script@v7
  with:
    github-token: ${{ secrets.CUSTOM_TOKEN }}
    script: |
      github.rest.pulls.create({
          owner: context.repo.owner,
          repo: context.repo.repo,
          head: 'new-feature',
          base: 'main',
          title: 'New feature',
          body: 'Created by Github action'
        })

Thoughts / preferences @alexander-demicev ? My preference would be for the latter (script) unless we want to invoke it via a Makefile target instead.

@alexander-demicev
Copy link
Member Author

@yiannistri Yes, we can use the script action

@Danil-Grigorev
Copy link
Contributor

From the turtles side there is also needed: rancher/turtles-docs#94

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

No branches or pull requests

3 participants