Run structured JavaScript build on Java 21 #9
Workflow file for this run
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
| name: Apply structured JavaScript segment rewrite | |
| on: | |
| push: | |
| branches: | |
| - security/structured-javascript-segments | |
| permissions: | |
| contents: write | |
| jobs: | |
| apply: | |
| if: github.actor != 'github-actions[bot]' | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| ref: security/structured-javascript-segments | |
| fetch-depth: 0 | |
| - name: Set up JDK 21 | |
| uses: actions/setup-java@v4 | |
| with: | |
| java-version: '21' | |
| distribution: temurin | |
| cache: maven | |
| - name: Decode and apply implementation | |
| run: | | |
| cat .github/structured-js-payload.part0 \ | |
| .github/structured-js-payload.part1 \ | |
| .github/structured-js-payload.part2 \ | |
| .github/structured-js-payload.part3 | base64 --decode | tar -xz | |
| python3 .github/apply_structured_js.py | |
| rm .github/apply_structured_js.py | |
| rm .github/structured-js-payload.b64 | |
| rm .github/structured-js-payload.part0 | |
| rm .github/structured-js-payload.part1 | |
| rm .github/structured-js-payload.part2 | |
| rm .github/structured-js-payload.part3 | |
| rm .github/workflows/apply-structured-javascript-segments.yml | |
| - name: Build and test | |
| run: mvn -B -f AdvancedCore/pom.xml package | |
| - name: Commit implementation | |
| run: | | |
| git config user.name "Ben" | |
| git config user.email "benbergen12@gmail.com" | |
| git add -A | |
| git commit -m "Secure authored JavaScript text segments" | |
| git push origin HEAD:security/structured-javascript-segments |