gha: bump actions/cache from 4.1.1 to 4.1.2 (#593) #886
This file contains 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
# 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@91182cccc01eb5e619899d80e4e971d6181294a7 # v1 | |
with: | |
egress-policy: block | |
disable-telemetry: true | |
allowed-endpoints: | |
github.com:443 | |
gitlab.com:443 | |
- uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v2 | |
with: | |
fetch-depth: 0 | |
- uses: jauderho/git-repo-sync@6142c9cd8960dadc57d1190506d6c35ac5cee660 # v0.1.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 }} |