Skip to content

Conversation

Copy link

Copilot AI commented Oct 26, 2025

Adds automated site publishing via GitHub Actions, similar to mojohaus/mojohaus.github.io setup.

Workflow Behavior

  • Builds Maven site on all branches (except master) for validation
  • Deploys to master branch on push to source branch using maven-scm-publish-plugin
  • Uses JDK 11 with Temurin distribution and Maven caching

Security Hardening

  • Untrusted inputs (commit author, ID) passed through environment variables to prevent script injection
  • Explicit contents: write permission set on GITHUB_TOKEN (minimal required scope)
- name: Setup deploy
  env:
    COMMIT_EMAIL: ${{ github.event.head_commit.author.email }}
    COMMIT_NAME: ${{ github.event.head_commit.author.name }}
  run: |
    git config --global user.email "$COMMIT_EMAIL"
    git config --global user.name "$COMMIT_NAME"

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • www.apache.org
    • Triggering command: /usr/lib/jvm/temurin-17-jdk-amd64/bin/java --enable-native-access=ALL-UNNAMED -classpath /usr/share/apache-maven-3.9.11/boot/plexus-classworlds-2.9.0.jar -Dclassworlds.conf=/usr/share/apache-maven-3.9.11/bin/m2.conf -Dmaven.home=/usr/share/apache-maven-3.9.11 -Dlibrary.jansi.path=/usr/share/apache-maven-3.9.11/lib/jansi-native -Dmaven.multiModuleProjectDirectory=/home/REDACTED/work/codehaus-plexus.github.io/codehaus-plexus.github.io org.codehaus.plexus.classworlds.launcher.Launcher --batch-mode clean site (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Original prompt

This section details on the original issue you should resolve

<issue_title>add auto publishing site</issue_title>
<issue_description>We can use GitHub action to automatically publish site after commit

Like in: https://github.com/mojohaus/mojohaus.github.io/blob/site/.github/workflows/site.yml</issue_description>

Comments on the Issue (you are @copilot in this section)


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot AI and others added 3 commits October 26, 2025 07:51
Co-authored-by: slachiewicz <6705942+slachiewicz@users.noreply.github.com>
Co-authored-by: slachiewicz <6705942+slachiewicz@users.noreply.github.com>
Co-authored-by: slachiewicz <6705942+slachiewicz@users.noreply.github.com>
Copilot AI changed the title [WIP] Add GitHub action for auto publishing site Add GitHub Actions workflow for automatic site publishing Oct 26, 2025
Copilot AI requested a review from slachiewicz October 26, 2025 07:55
Copilot finished work on behalf of slachiewicz October 26, 2025 07:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

add auto publishing site

2 participants