Compare commits
20
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
21213e825c | ||
|
|
5b46420b3f | ||
|
|
374343effe | ||
|
|
5a79ab0fa4 | ||
|
|
0c3e582042 | ||
|
|
876b304ec0 | ||
|
|
3104f6d51c | ||
|
|
5d8c040f29 | ||
|
|
466989c808 | ||
|
|
67f3292117 | ||
|
|
3f420ae88d | ||
|
|
ef571d5a84 | ||
|
|
0eb73668fa | ||
|
|
7a168cbdc4 | ||
|
|
d5fd67e101 | ||
|
|
27e6d82755 | ||
|
|
3d11e5a0f7 | ||
|
|
51ef6b3995 | ||
|
|
cfe815dd6d | ||
|
|
9db31129a3 |
@@ -23,10 +23,10 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v6
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Set Node.js 16.x
|
- name: Set Node.js 16.x
|
||||||
uses: actions/setup-node@v6.2.0
|
uses: actions/setup-node@v4.4.0
|
||||||
with:
|
with:
|
||||||
node-version: 16.x
|
node-version: 16.x
|
||||||
|
|
||||||
@@ -46,7 +46,7 @@ jobs:
|
|||||||
id: diff
|
id: diff
|
||||||
|
|
||||||
# If index.js was different than expected, upload the expected version as an artifact
|
# If index.js was different than expected, upload the expected version as an artifact
|
||||||
- uses: actions/upload-artifact@v7
|
- uses: actions/upload-artifact@v4
|
||||||
if: ${{ failure() && steps.diff.conclusion == 'failure' }}
|
if: ${{ failure() && steps.diff.conclusion == 'failure' }}
|
||||||
with:
|
with:
|
||||||
name: dist
|
name: dist
|
||||||
|
|||||||
@@ -0,0 +1,42 @@
|
|||||||
|
name: Sync Fork with Upstream
|
||||||
|
on:
|
||||||
|
schedule:
|
||||||
|
- cron: '0 0 * * 1' # Runs at midnight UTC every Monday
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
|
pull-requests: write
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
sync:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout Repository
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
fetch-depth: 0
|
||||||
|
|
||||||
|
- name: Fetch Upstream Remote
|
||||||
|
run: |
|
||||||
|
git remote add upstream https://github.com/advanced-security/component-detection-dependency-submission-action.git
|
||||||
|
git fetch upstream
|
||||||
|
- name: Set Git Config
|
||||||
|
run: |
|
||||||
|
git config user.name "github-actions[bot]"
|
||||||
|
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
|
||||||
|
- name: Create and Push Branch
|
||||||
|
run: |
|
||||||
|
git checkout -b weekly-sync-branch-${{ github.run_id }}
|
||||||
|
git merge upstream/main --no-commit
|
||||||
|
git reset -- ./.github
|
||||||
|
git commit -m "Merge upstream:main"
|
||||||
|
git commit --allow-empty -m "Empty commit to open PR"
|
||||||
|
git push --set-upstream origin weekly-sync-branch-${{ github.run_id }}
|
||||||
|
- name: Open Pull Request
|
||||||
|
run: |
|
||||||
|
gh repo set-default actions/component-detection-dependency-submission-action
|
||||||
|
gh pr create -B main -H weekly-sync-branch-${{ github.run_id }} --title 'Sync Fork with Upstream' --body 'Weekly Cron. Created by GitHub Actions.'
|
||||||
|
env:
|
||||||
|
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
@@ -16,7 +16,7 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v6
|
- uses: actions/checkout@v4
|
||||||
- name: Unit test
|
- name: Unit test
|
||||||
run: |
|
run: |
|
||||||
npm install
|
npm install
|
||||||
|
|||||||
+1
-1
@@ -1 +1 @@
|
|||||||
* @advanced-security/advanced-security-dependency-graph @advanced-security/oss-maintainers
|
* @advanced-security/advanced-security-dependency-graph
|
||||||
|
|||||||
Reference in New Issue
Block a user