Skip to content

Merge pull request #91 from navikt/logger-readme #23

Merge pull request #91 from navikt/logger-readme

Merge pull request #91 from navikt/logger-readme #23

Workflow file for this run

name: ON PUSH MAIN
on:
push:
branches:
- main
paths:
- src/**
workflow_dispatch:
jobs:
build:
uses: navikt/sf-platform/.github/workflows/buildAndPublish.yml@main
permissions:
contents: write
packages: write
security-events: write
secrets:
SF_DEVHUB_URL: ${{ secrets.SF_DEVHUB_URL }}
METRICS_KEYS: ${{ secrets.METRICS_KEYS }}
create_release:
needs: build
if: needs.build.outputs.hasNewArtifacts == 'true'
uses: navikt/sf-platform/.github/workflows/createRelease.yml@main

Check failure on line 22 in .github/workflows/on_push_main.yml

View workflow run for this annotation

GitHub Actions / ON PUSH MAIN

Invalid workflow file

The workflow is not valid. navikt/sf-platform/.github/workflows/buildAndPublish.yml@main (Line: 22, Col: 3): Error calling workflow 'navikt/sf-platform/.github/workflows/ciStaticCodeValidation.yml@main'. The nested job 'validate' is requesting 'pull-requests: write', but is only allowed 'pull-requests: none'.

Check failure on line 22 in .github/workflows/on_push_main.yml

View workflow run for this annotation

GitHub Actions / ON PUSH MAIN

Invalid workflow file

The workflow is not valid. navikt/sf-platform/.github/workflows/buildAndPublish.yml@main (Line: 22, Col: 3): Error calling workflow 'navikt/sf-platform/.github/workflows/ciStaticCodeValidation.yml@main'. The nested job 'validate' is requesting 'pull-requests: write', but is only allowed 'pull-requests: none'.
permissions:
contents: write
packages: read
secrets:
METRICS_KEYS: ${{ secrets.METRICS_KEYS }}
SF_DEVHUB_URL: ${{ secrets.SF_DEVHUB_URL }}
release_to_dev:
needs: create_release
if: needs.create_release.result == 'success'
uses: navikt/sf-platform/.github/workflows/releaseToDev.yml@main
permissions:
contents: read
packages: read
secrets:
METRICS_KEYS: ${{ secrets.METRICS_KEYS }}
SF_DEVHUB_URL: ${{ secrets.SF_DEVHUB_URL }}
SF_DEV_URL: ${{ secrets.SF_DEV_URL }}