Skip to content

Commit

Permalink
fix: adding a token parameter to the workflow call (#531)
Browse files Browse the repository at this point in the history
## Description

<!-- 
Please do not leave this blank 
This PR [adds/removes/fixes/replaces] the [feature/bug/etc]. 
-->

Please include a summary of the changes and the related issue. Please
also include relevant motivation and context. List any dependencies that
are required for this change.


## What type of PR is this? (check all applicable)

- [ ] 🍕 Feature
- [ ] 🐛 Bug Fix
- [ ] 📝 Documentation Update
- [ ] 🎨 Style
- [ ] 🧑‍💻 Code Refactor
- [ ] 🔥 Performance Improvements
- [ ] ✅ Test
- [ ] 🤖 Build
- [ ] 🔁 CI
- [ ] 📦 Chore (Release)
- [ ] ⏩ Revert

## Related Tickets & Documents

<!-- 
Please use this format link issue numbers: Fixes #123

https://docs.github.com/en/free-pro-team@latest/github/managing-your-work-on-github/linking-a-pull-request-to-an-issue#linking-a-pull-request-to-an-issue-using-a-keyword
-->
- Related Issue # (issue)
- Closes # (issue)
- Fixes # (issue)
> Remove if not applicable

## Screenshots

<!-- Visual changes require screenshots -->


## Added tests?

- [ ] 👍 yes
- [ ] 🙅 no, because they aren't needed
- [ ] 🙋 no, because I need help
- [ ] Separate ticket for tests # (issue/pr)

Please describe the tests that you ran to verify your changes. Provide
instructions so we can reproduce. Please also list any relevant details
for your test configuration


## Added to documentation?

- [ ] 📜 README.md
- [ ] 🙅 no documentation needed

## Checklist:

- [ ] My code follows the style guidelines of this project
- [ ] I have performed a self-review of my code
- [ ] I have commented my code, particularly in hard-to-understand areas
- [ ] I have made corresponding changes to the documentation
- [ ] My changes generate no new warnings
- [ ] I have added tests that prove my fix is effective or that my
feature works
- [ ] New and existing unit tests pass locally with my changes
- [ ] Any dependent changes have been merged and published in downstream
modules
  • Loading branch information
Skarlso authored Oct 4, 2024
1 parent b777f59 commit 97c3983
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/components_push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ name: component CTFs
on:
workflow_dispatch:
workflow_call:
secrets:
token:
required: true

permissions:
contents: read
Expand Down Expand Up @@ -34,7 +37,7 @@ jobs:
go-version-file: '${{ github.workspace }}/go.mod'
- name: CTF
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.token }}
run: |
cd component/
PATH=$PATH:$(go env GOPATH)/bin make ocm && make ctf && make push
2 changes: 2 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ jobs:
contents: write
pull-requests: read
packages: write
with:
token: ${{ secrets.GITHUB_TOKEN }}
release:
needs: tests
name: Trigger release build
Expand Down
3 changes: 3 additions & 0 deletions docs/release_notes/v0.24.11.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Release 0.24.11

- fix: passing in the token as an extra parameter to the workflow dispatch

0 comments on commit 97c3983

Please sign in to comment.