Skip to content

Commit

Permalink
chore: add dependabot and codeql, update deps (#80)
Browse files Browse the repository at this point in the history
* chore: add dependabot and codeql, update deps
  • Loading branch information
valosnah authored Jun 28, 2023
1 parent d4d62a8 commit bb0c711
Show file tree
Hide file tree
Showing 4 changed files with 4,868 additions and 4,871 deletions.
16 changes: 16 additions & 0 deletions .github/dependabot.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
version: 2
updates:

# Maintain dependencies for GitHub Actions
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
day: "sunday"

# Maintain dependencies for npm/yarn
- package-ecosystem: "npm"
directory: "/"
schedule:
interval: "weekly"
day: "sunday"
22 changes: 22 additions & 0 deletions .github/workflows/codeql.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Code scanning (CodeQL)

on:
pull_request:
types: [ready_for_review, opened, reopened, synchronize]
branches:
- main
push:
branches:
- main
schedule:
- cron: '0 2 * * *'

jobs:
codeql:
name: Run codeql scan
if: github.event.pull_request.draft == false
uses: Informasjonsforvaltning/workflows/.github/workflows/codeql.yaml@main
with:
language: javascript
secrets:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
8 changes: 8 additions & 0 deletions .github/workflows/deploy-staging.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ on:
jobs:
build-and-deploy-staging:
name: Deploy to staging on merge to main branch
if: ${{ github.actor != 'dependabot[bot]' && github.event.pull_request.draft == false }}
uses: Informasjonsforvaltning/workflows/.github/workflows/build-deploy.yaml@main
with:
app_name: fdk-cms-service
Expand All @@ -19,3 +20,10 @@ jobs:
GCP_SA_DIGDIR_FDK_GCR_KEY: ${{ secrets.GCP_SA_DIGDIR_FDK_GCR_KEY }}
DIGDIR_FDK_AUTODEPLOY: ${{ secrets.DIGDIR_FDK_DEV_AUTODEPLOY }}
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}

dependabot-build:
name: Build image on PR from dependabot
if: ${{ github.actor == 'dependabot[bot]' }}
uses: Informasjonsforvaltning/workflows/.github/workflows/build.yaml@main
secrets:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Loading

0 comments on commit bb0c711

Please sign in to comment.