Skip to content

Use compact structured JavaScript apply workflow #3

Use compact structured JavaScript apply workflow

Use compact structured JavaScript apply workflow #3

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: Decode and apply implementation
run: |
base64 --decode .github/structured-js-payload.b64 | tar -xz
python3 .github/apply_structured_js.py
rm .github/apply_structured_js.py
rm .github/structured-js-payload.b64
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