-
-
Notifications
You must be signed in to change notification settings - Fork 291
chore: add template sync workflow #2354
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
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| group: | ||
| - files: | ||
| - source: .apps/ | ||
| dest: .apps/ | ||
| - source: docs/apps/ | ||
| dest: docs/apps/ | ||
| repos: | ||
| - GhostWriters/DockSTARTer-Templates | ||
| options: | ||
| COMMIT_AS_PR: false |
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,26 @@ | ||||||||||||||||||||||||||||||||
| name: Sync to Templates | ||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||
| on: | ||||||||||||||||||||||||||||||||
| push: | ||||||||||||||||||||||||||||||||
| branches: | ||||||||||||||||||||||||||||||||
| - main | ||||||||||||||||||||||||||||||||
| - master | ||||||||||||||||||||||||||||||||
| paths: | ||||||||||||||||||||||||||||||||
| - ".apps/**" | ||||||||||||||||||||||||||||||||
| - "docs/apps/**" | ||||||||||||||||||||||||||||||||
| workflow_dispatch: | ||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||
| jobs: | ||||||||||||||||||||||||||||||||
| sync: | ||||||||||||||||||||||||||||||||
| runs-on: ubuntu-latest | ||||||||||||||||||||||||||||||||
| steps: | ||||||||||||||||||||||||||||||||
| - name: Checkout | ||||||||||||||||||||||||||||||||
| uses: actions/checkout@v4 | ||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||
| - name: Sync Files | ||||||||||||||||||||||||||||||||
| uses: BetaHuhn/repo-file-sync-action@v1 | ||||||||||||||||||||||||||||||||
| with: | ||||||||||||||||||||||||||||||||
| GH_PAT: ${{ secrets.GH_PAT }} | ||||||||||||||||||||||||||||||||
| CONFIG_PATH: .github/sync.yml | ||||||||||||||||||||||||||||||||
| PR_LABELS: sync | ||||||||||||||||||||||||||||||||
| COMMIT_PREFIX: "chore: sync from DockSTARTer" | ||||||||||||||||||||||||||||||||
|
Comment on lines
+15
to
+26
Check warningCode scanning / CodeQL Workflow does not contain permissions Medium
Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {contents: read}
Copilot AutofixAI 2 months ago In general, fix this by adding a The permissions:
contents: write
pull-requests: writeInsert this under
Suggested changeset
1
.github/workflows/sync_templates.yml
Copilot is powered by AI and may make mistakes. Always verify output.
Refresh and try again.
|
||||||||||||||||||||||||||||||||
Check warning
Code scanning / CodeQL
Unpinned tag for a non-immutable Action in workflow Medium