-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
cf0fde4
commit a5fcd6b
Showing
2 changed files
with
124 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
# To get started with Dependabot version updates, you'll need to specify which | ||
# package ecosystems to update and where the package manifests are located. | ||
# Please see the documentation for all configuration options: | ||
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates | ||
|
||
version: 2 | ||
updates: | ||
- package-ecosystem: "npm" | ||
directory: "/alcs-frontend" | ||
schedule: | ||
interval: "daily" | ||
target-branch: "develop" | ||
commit-message: | ||
prefix: "ALCS-000" | ||
allow: | ||
- dependency-type: "direct" | ||
ignore: | ||
- dependency-name: "*" | ||
update-types: ["version-update:semver-major"] | ||
groups: | ||
npm-security: | ||
applies-to: security-updates | ||
patterns: | ||
- "*" | ||
update-types: | ||
- "minor" | ||
- "patch" | ||
npm-minor-and-patch: | ||
applies-to: version-updates | ||
patterns: | ||
- "*" | ||
update-types: | ||
- "minor" | ||
- "patch" | ||
- package-ecosystem: "npm" | ||
directory: "/portal-frontend" | ||
schedule: | ||
interval: "daily" | ||
target-branch: "develop" | ||
commit-message: | ||
prefix: "ALCS-000" | ||
allow: | ||
- dependency-type: "direct" | ||
ignore: | ||
- dependency-name: "*" | ||
update-types: ["version-update:semver-major"] | ||
groups: | ||
npm-security: | ||
applies-to: security-updates | ||
patterns: | ||
- "*" | ||
update-types: | ||
- "minor" | ||
- "patch" | ||
npm-minor-and-patch: | ||
applies-to: version-updates | ||
patterns: | ||
- "*" | ||
update-types: | ||
- "minor" | ||
- "patch" | ||
- package-ecosystem: "npm" | ||
directory: "/services" | ||
schedule: | ||
interval: "daily" | ||
target-branch: "develop" | ||
commit-message: | ||
prefix: "ALCS-000" | ||
allow: | ||
- dependency-type: "direct" | ||
ignore: | ||
- dependency-name: "*" | ||
update-types: ["version-update:semver-major"] groups: | ||
npm-security: | ||
applies-to: security-updates | ||
patterns: | ||
- "*" | ||
update-types: | ||
- "minor" | ||
- "patch" | ||
npm-minor-and-patch: | ||
applies-to: version-updates | ||
patterns: | ||
- "*" | ||
update-types: | ||
- "minor" | ||
- "patch" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
name: Auto-merge Dependabot PRs | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- develop | ||
workflow_run: | ||
workflows: ["CI"] | ||
types: | ||
- completed | ||
|
||
permissions: | ||
contents: write | ||
pull-requests: write | ||
|
||
jobs: | ||
auto-merge: | ||
runs-on: ubuntu-latest | ||
if: | | ||
github.actor == 'dependabot[bot]' && | ||
github.event_name == 'workflow_run' && | ||
github.event.workflow_run.conclusion == 'success' | ||
steps: | ||
- name: Auto-merge Dependabot PR | ||
run: | | ||
# Get PR number from branch name | ||
PR_NUMBER=$(echo ${{ github.event.workflow_run.head_branch }} | grep -o '[0-9]\+' || echo '') | ||
if [ -n "$PR_NUMBER" ]; then | ||
# Approve PR | ||
gh pr review $PR_NUMBER --approve | ||
# Enable auto-merge | ||
gh pr merge $PR_NUMBER --auto --merge | ||
fi | ||
Check failure Code scanning / CodeQL Expression injection in Actions Critical
Potential injection from the ${{ github.event.workflow_run.head_branch }}, which may be controlled by an external user.
|
||
env: | ||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} |