Update identify-hidden-content-website.sh #636
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: Update scripts index | |
| on: | |
| push: | |
| branches: [ "master" ] | |
| paths: | |
| - "scripts/*.*" | |
| workflow_dispatch: | |
| permissions: read-all | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Update the script and ports indexes | |
| run: | | |
| python -m venv pyenv | |
| chmod -R +x pyenv | |
| source pyenv/bin/activate | |
| python -m pip install tomark | |
| python -m py_compile scripts/identify-attack-surface-from-nmap-scan.py | |
| rm -f scripts/__pycache__/*.pyc | |
| rmdir scripts/__pycache__ | |
| chmod +x build-scripts-index.sh build-ports-index.py | |
| bash build-scripts-index.sh | |
| python build-ports-index.py | |
| deactivate | |
| rm -rf pyenv | |
| - name: Set up Git user | |
| run: git config --global user.email "[email protected]"; git config --global user.name "GHActionBot" | |
| - name: Commit update | |
| run: git commit -am "Sync scripts indexes MD file"; git push |