chore: [StepSecurity] Apply security best practices (#108) #110
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 Node Tables | |
| on: | |
| push: | |
| branches: | |
| - main | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| jobs: | |
| update-tables: | |
| runs-on: hashgraph-docs-linux-medium | |
| steps: | |
| - name: Harden the runner (Audit all outbound calls) | |
| uses: step-security/harden-runner@0634a2670c59f64b4a01f0f96f84700a4088b9f0 # v2.12.0 | |
| with: | |
| egress-policy: audit | |
| - name: Checkout repository | |
| uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0 | |
| - name: Install dependencies | |
| run: sudo apt-get install -y jq | |
| - name: Run update script | |
| run: ./update_node_tables.sh | |
| - name: Create Pull Request | |
| if: ${{ steps.git-check.outputs.changes == 'true' }} | |
| uses: peter-evans/create-pull-request@271a8d0340265f705b14b6d32b9829c1cb33d45e # v7.0.8 | |
| with: | |
| commit-message: "chore: update node tables" | |
| sign-commits: true | |
| branch: update-node-tables | |
| title: "chore: update node tables" | |
| body: "Automated update of node tables." | |
| labels: automated-pr | |
| delete-branch: true |