Skip to content

chore: added write permission to github job #216

chore: added write permission to github job

chore: added write permission to github job #216

Workflow file for this run

name: Main Branch
on:
push:
branches:
- main
- v[0-9]+.x
tags:
- v[0-9]+.[0-9]+.[0-9]+
jobs:
install:
name: Install
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Cache node_modules
id: cacheModules
uses: actions/cache@v3
with:
path: ~/.npm # this is cache where npm installs from before going out to the network
key: ${{ runner.os }}-node-${{ hashFiles('**/package.json') }}
- name: Install dependencies
if: steps.cacheModules.outputs.cache-hit != 'true'
run: npm install
checks:
name: Check
needs: [install]
uses: ./.github/workflows/checks.yml
# The security job can't run on pull requests opened from forks because
# Github doesn't pass down the SNYK_TOKEN environment variable.
security:
name: Check Security
needs: [install]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/cache@v3
with:
path: ~/.npm # this is cache where npm installs from before going out to the network
key: ${{ runner.os }}-node-${{ hashFiles('**/package.json') }}
- run: npm install --prefer-offline
- run: make secure
env:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
release:

Check failure on line 49 in .github/workflows/ci.yml

View workflow run for this annotation

GitHub Actions / Main Branch

Invalid workflow file

The workflow is not valid. .github/workflows/ci.yml (Line: 49, Col: 3): Error calling workflow 'lquixada/cross-fetch/.github/workflows/release.yml@2a8fffe5eef31719037fc0c3fcbdf3ea68b8711e'. The nested job 'Publish to Github registry' is requesting 'packages: write', but is only allowed 'packages: read'.

Check failure on line 49 in .github/workflows/ci.yml

View workflow run for this annotation

GitHub Actions / Main Branch

Invalid workflow file

The workflow is not valid. .github/workflows/ci.yml (Line: 49, Col: 3): Error calling workflow 'lquixada/cross-fetch/.github/workflows/release.yml@2a8fffe5eef31719037fc0c3fcbdf3ea68b8711e'. The nested job 'Publish to Github registry' is requesting 'packages: write', but is only allowed 'packages: read'.
name: Release
if: startsWith(github.event.ref, 'refs/tags/')
needs: [checks, security]
uses: ./.github/workflows/release.yml