Skip to content

Update hosted-file-monitor-with-hr.yml #29

Update hosted-file-monitor-with-hr.yml

Update hosted-file-monitor-with-hr.yml #29

name: "Hosted: File Monitoring with Harden-Runner"
on:
workflow_dispatch:
push:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: step-security/harden-runner@v2
with:
egress-policy: audit
- uses: crazy-max/ghaction-github-status@v4
- uses: actions/checkout@v3
- name: npm install
run: |
cd ./src/backdoor-demo
npm install
- name: get-npm-version
id: package-version
uses: martinbeentjes/[email protected]
with:
path: src/backdoor-demo
- name: Publish to Registry
uses: elgohr/Publish-Docker-Github-Action@v5
with:
name: ${{ github.repository }}/prod:latest
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
registry: ghcr.io
workdir: ./src/backdoor-demo