Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 3 additions & 6 deletions .github/workflows/mirror-to-owasp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ jobs:
mirror:
runs-on: ubuntu-latest
name: Mirror repository to OWASP
permissions:
contents: read

steps:
- name: Checkout repository
Expand All @@ -23,14 +21,13 @@ jobs:

- name: Mirror to OWASP repository
env:
OWASP_REPO_URL: https://github.com/OWASP/www-project-docksec.git
GITHUB_TOKEN: ${{ secrets.OWASP_MIRROR_TOKEN }}
OWASP_TOKEN: ${{ secrets.OWASP_MIRROR_TOKEN }}
run: |
git config --global user.name "GitHub Actions Bot"
git config --global user.email "actions@github.com"

# Add OWASP remote
git remote add owasp https://x-access-token:${GITHUB_TOKEN}@github.com/OWASP/www-project-docksec.git
# Add OWASP remote with personal access token
git remote add owasp https://x-access-token:${OWASP_TOKEN}@github.com/OWASP/www-project-docksec.git

# Push the main branch
echo "Pushing main branch to OWASP repository..."
Expand Down
Loading