-
Notifications
You must be signed in to change notification settings - Fork 0
refactor: 👷 replace reusable workflows with normal workflow steps #284
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
Open
lwjohnst86
wants to merge
7
commits into
main
Choose a base branch
from
refactor/do-not-use-reusable-workflows
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
c54f02d
refactor: 👷 replace reusable workflows with normal workflow steps
lwjohnst86 a612f74
refactor: :pencil2: edits from review
lwjohnst86 7de697c
chore: ✏️ automatic pre-commit hook fixes
pre-commit-ci[bot] d665413
Merge branch 'main' of https://github.com/seedcase-project/template-p…
lwjohnst86 5fa8284
refactor: ✏️ explain about cron meaning
lwjohnst86 8c444ac
refactor: 📌 update harden runner version
lwjohnst86 bac189e
fix: 🐛 forgot to escape the workflow variables in Jinja
lwjohnst86 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,59 @@ | ||
| name: Add to project board | ||
|
|
||
| on: | ||
| issues: | ||
| types: | ||
| - opened | ||
| - reopened | ||
| - transferred | ||
| pull_request: | ||
| types: | ||
| - reopened | ||
| - opened | ||
|
|
||
| # Limit token permissions for security | ||
| permissions: read-all | ||
|
|
||
| env: | ||
| # TODO: Fill in with the correct board number for this repo. | ||
| BOARD_NUMBER: "" | ||
|
|
||
| jobs: | ||
| add-to-project: | ||
| runs-on: ubuntu-latest | ||
| permissions: | ||
| pull-requests: write | ||
| steps: | ||
| # This is a useful security step to check for unexpected outbound calls from the runner, | ||
| # which could indicate a compromised token or runner. | ||
| - name: Harden the runner (Audit all outbound calls) | ||
| uses: step-security/harden-runner@ab7a9404c0f3da075243ca237b5fac12c98deaa5 # v2.19.3 | ||
| with: | ||
| egress-policy: audit | ||
|
|
||
| # Using this security pattern for GitHub Apps is recommended by GitHub and ensures that | ||
| # the token is only available for a short time and has limited permissions. Check out | ||
| # <https://guidebook.seedcase-project.org/operations/security> for more details. | ||
| - uses: actions/create-github-app-token@1b10c78c7865c340bc4f6099eb2f838309f1e8c3 # v3.1.1 | ||
| id: app-token | ||
| with: | ||
| # TODO: Confirm that this variable is set up for this repo. | ||
| client-id: "${{ vars.ADD_TO_BOARD_APP_ID }}" | ||
| # TODO: Confirm that this secret is set up for this repo. | ||
| private-key: "${{ secrets.ADD_TO_BOARD }}" | ||
|
|
||
| - name: Add issue or PR to project board | ||
| uses: actions/add-to-project@244f685bbc3b7adfa8466e08b698b5577571133e # v1.0.2 | ||
| with: | ||
| project-url: "https://github.com/orgs/${{ github.repository_owner }}/projects/${{ env.BOARD_NUMBER }}" | ||
| github-token: "${{ steps.app-token.outputs.token }}" | ||
|
|
||
| - name: Assign PR to creator | ||
| if: ${{ github.event_name == 'pull_request' }} | ||
| run: | | ||
| gh pr edit $PR --add-assignee $AUTHOR --repo $REPO | ||
| env: | ||
| REPO: ${{ github.repository }} | ||
| AUTHOR: ${{ github.event.pull_request.user.login }} | ||
| PR: ${{ github.event.pull_request.html_url }} | ||
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.