Skip to content

Bump step-security/harden-runner from 2.7.1 to 2.8.0 (#159) #247

Bump step-security/harden-runner from 2.7.1 to 2.8.0 (#159)

Bump step-security/harden-runner from 2.7.1 to 2.8.0 (#159) #247

Workflow file for this run

# https://dev.to/brunorobert/github-and-gitlab-sync-44mn
# This pushes code from GitHub to Gitlab upon commit to GH
name: Gitlab Sync
on:
push:
branches:
- main
#delete: {}
permissions: read-all
jobs:
sync:
runs-on: ubuntu-24.04
name: Git Repo Sync
steps:
- name: Harden Runner
uses: step-security/harden-runner@f086349bfa2bd1361f7909c78558e816508cdc10 # v1
with:
egress-policy: block
disable-telemetry: true
allowed-endpoints:
github.com:443
gitlab.com:443
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v3
with:
fetch-depth: 0
- uses: jauderho/git-repo-sync@6142c9cd8960dadc57d1190506d6c35ac5cee660 # v0.2.0
with:
# Such as https://github.com/wangchucheng/git-repo-sync.git
#target-url: ${{ secrets.GITLAB_URL }}
target-url: https://gitlab.com/${{ github.repository }}.git
# Such as wangchucheng
#target-username: ${{ secrets.GITLAB_USERNAME }}
target-username: ${{ github.actor }}
# You can store token in your project's 'Setting > Secrets' and reference the name here. Such as ${{ secrets.ACCESS\_TOKEN }}
target-token: ${{ secrets.GITLAB_TOKEN }}