Skip to content

ci: fix zizmor audit findings (#337) #39

ci: fix zizmor audit findings (#337)

ci: fix zizmor audit findings (#337) #39

Workflow file for this run

name: Release
on:
push:
branches:
- main
permissions: {}
jobs:
test:

Check failure on line 11 in .github/workflows/release.yml

View workflow run for this annotation

GitHub Actions / Release

Invalid workflow file

The workflow is not valid. .github/workflows/release.yml (Line: 11, Col: 3): Error calling workflow 'electron/devtron/.github/workflows/test.yml@62ac8b784b4ea22919acbb3b7286c775311d2f71'. The workflow is requesting 'contents: read', but is only allowed 'contents: none'.
uses: ./.github/workflows/test.yml
release:
name: Release
runs-on: ubuntu-latest
needs: test
environment: npm-trusted-publisher
permissions:
id-token: write # for publishing releases
steps:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- name: Setup Node.js
uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
with:
node-version-file: .nvmrc
package-manager-cache: false
- name: Install
run: yarn install --immutable
- name: Get GitHub app token
id: secret-service
uses: electron/secret-service-action@3476425e8b30555aac15b1b7096938e254b0e155 # v1.0.0
- name: Run semantic release
uses: electron/semantic-trusted-release@03517840010ba30fe5264f4875f4cff066b658d1 # v1.1.0
with:
github-token: ${{ fromJSON(steps.secret-service.outputs.secrets).GITHUB_TOKEN }}