-
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.
Potential fix for code scanning alert no. 3: Expression injection in Actions Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
- Loading branch information
1 parent
32c2d63
commit f2e7575
Showing
2 changed files
with
126 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,88 @@ | ||
# 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,38 @@ | ||
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 | ||
env: | ||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
HEAD_BRANCH: ${{ github.event.workflow_run.head_branch }} | ||
run: | | ||
# Get PR number from branch name | ||
PR_NUMBER=$(echo "$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 |