Skip to content

🔄 Synced file(s) with ottrproject/OTTR_Template_Website#10

Open
jhudsl-robot wants to merge 3 commits into
mainfrom
repo-sync/OTTR_Template_Website/default
Open

🔄 Synced file(s) with ottrproject/OTTR_Template_Website#10
jhudsl-robot wants to merge 3 commits into
mainfrom
repo-sync/OTTR_Template_Website/default

Conversation

@jhudsl-robot

@jhudsl-robot jhudsl-robot commented Jun 6, 2025

Copy link
Copy Markdown

Synced local file(s) with ottrproject/OTTR_Template_Website.

Changed files
  • Synced local directory .github/workflows/ with remote directory .github/workflows/
  • Created local .github/workflows/render-site.yml from remote .github/workflows/render-all.yml
  • Created local config_automation.yml from remote config_automation.yml

This PR was created automatically by the repo-file-sync-action workflow run #15499754522

@github-actions

github-actions Bot commented Jun 6, 2025

Copy link
Copy Markdown
Contributor

OTTR Check Results

Summary

  • Spelling check: ✅ PASSED (0 errors found, threshold: 0)
  • URL check: ✅ PASSED (0 errors found, threshold: 0)

🎉 All checks passed!

Last Updated: 2025-06-06-21:06:19

@github-actions

github-actions Bot commented Jun 6, 2025

Copy link
Copy Markdown
Contributor

Re-rendered previews from the latest commit:

* note not all html features will be properly displayed in the "quick preview" but it will give you a rough idea.

Updated at 2025-06-06 with changes from the latest commit 61e640b

@jhudsl-robot jhudsl-robot force-pushed the repo-sync/OTTR_Template_Website/default branch from 4d68941 to cf9c863 Compare June 6, 2025 21:06
Comment on lines +23 to +39
uses: actions/checkout@v4

# Use the yaml-env-action action.
- name: Load environment from YAML
uses: doughepi/yaml-env-action@v1.0.0
with:
files: config_automation.yml # Pass a space-separated list of configuration files. Rightmost files take precedence.
outputs:
toggle_website: "${{ env.RENDER_WEBSITE }}"
rendering_docker_image: "${{ env.RENDERING_DOCKER_IMAGE }}"

render-website:
name: Render website
needs: yaml-check
runs-on: ubuntu-latest

steps:

Check warning

Code 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 Autofix

AI about 1 year ago

To fix the issue, we will add a permissions block at the root of the workflow to define the least privileges required for all jobs. Based on the workflow's functionality, it primarily involves reading repository contents and using external actions. Therefore, we will set contents: read as the minimal permission. If any job requires additional permissions, they can be specified within the job's permissions block.


Suggested changeset 1
.github/workflows/render-site.yml

Autofix patch

Autofix patch
Run the following command in your local git repository to apply this patch
cat << 'EOF' | git apply
diff --git a/.github/workflows/render-site.yml b/.github/workflows/render-site.yml
--- a/.github/workflows/render-site.yml
+++ b/.github/workflows/render-site.yml
@@ -4,2 +4,4 @@
 name: Render website
+permissions:
+  contents: read
 
EOF
@@ -4,2 +4,4 @@
name: Render website
permissions:
contents: read

Copilot is powered by AI and may make mistakes. Always verify output.
Comment on lines +35 to +53
name: Render website
needs: yaml-check
runs-on: ubuntu-latest

steps:
- name: checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ secrets.GH_PAT }}

- name: Run render
id: render
uses: ottrproject/ottr-preview@main
with:
toggle_website: ${{needs.yaml-check.outputs.toggle_website}}
preview: false
token: ${{ secrets.GH_PAT }}
docker_image: ${{needs.yaml-check.outputs.rendering_docker_image}}

Check warning

Code 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 Autofix

AI about 1 year ago

To fix the issue, we need to add a permissions block to the workflow. This block should specify the least privileges required for the workflow to function correctly. Based on the workflow's operations, it likely only needs contents: read permissions to interact with repository contents. If additional permissions are required for specific jobs, they can be added to those jobs individually.

The permissions block should be added at the root level of the workflow to apply to all jobs unless overridden by job-specific permissions.

Suggested changeset 1
.github/workflows/render-site.yml

Autofix patch

Autofix patch
Run the following command in your local git repository to apply this patch
cat << 'EOF' | git apply
diff --git a/.github/workflows/render-site.yml b/.github/workflows/render-site.yml
--- a/.github/workflows/render-site.yml
+++ b/.github/workflows/render-site.yml
@@ -5,2 +5,5 @@
 
+permissions:
+  contents: read
+
 on:
EOF
@@ -5,2 +5,5 @@

permissions:
contents: read

on:
Copilot is powered by AI and may make mistakes. Always verify output.
@kweav kweav self-requested a review January 20, 2026 19:42
@kweav

kweav commented Jan 20, 2026

Copy link
Copy Markdown
Contributor

Need to go through this and make sure that this doesn't impact the dashboard -- on a cursory glance, need to undelete the refresh data workflow, and then see what else is impacted besides switching it new OTTR actions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants