Skip to content

chore(deps): bump org.apache.maven.plugins:maven-failsafe-plugin from 3.5.1 to 3.5.2 #148

chore(deps): bump org.apache.maven.plugins:maven-failsafe-plugin from 3.5.1 to 3.5.2

chore(deps): bump org.apache.maven.plugins:maven-failsafe-plugin from 3.5.1 to 3.5.2 #148

name: Deploy to staging
on:
pull_request:
types: [ready_for_review, opened, reopened, synchronize]
branches:
- main
jobs:
build-fdk-event-harvester:
name: Build when pull request is created
if: github.event.pull_request.draft == false
uses: Informasjonsforvaltning/workflows/.github/workflows/build-push.yaml@main
with:
app_name: fdk-event-harvester
java_version: '17'
coverage_file_path: ./target/site/jacoco/jacoco.xml
environment: staging
secrets:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GCP_SA_DIGDIR_FDK_GCR_KEY: ${{ secrets.GCP_SA_DIGDIR_FDK_GCR_KEY }}
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
deploy:
name: Deploy to staging environment
if: ${{ github.actor != 'dependabot[bot]' && github.event.pull_request.draft == false }}
needs: [ build-fdk-event-harvester ]
uses: Informasjonsforvaltning/workflows/.github/workflows/kustomize-deploy.yaml@main
with:
app_name: fdk-event-harvester
environment: staging
cluster: digdir-fdk-dev
secrets:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
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
with:
java_version: '17'
secrets:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Check failure on line 45 in .github/workflows/deploy-staging.yaml

View workflow run for this annotation

GitHub Actions / Deploy to staging

Invalid workflow file

The workflow is not valid. .github/workflows/deploy-staging.yaml (Line: 45, Col: 17): Invalid secret, GH_TOKEN is not defined in the referenced workflow.