diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c32fcb5..479e35a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -8,6 +8,9 @@ on: branches: - main +permissions: + contents: read + jobs: build: runs-on: ubuntu-latest @@ -15,8 +18,8 @@ jobs: - uses: actions/checkout@v5 - uses: actions/setup-node@v5 with: - node-version: '22' - cache: 'npm' + node-version: "22" + cache: "npm" - name: Install dependencies run: npm ci @@ -31,14 +34,13 @@ jobs: - uses: actions/checkout@v5 - uses: actions/setup-node@v5 with: - node-version: '22' - cache: 'npm' + node-version: "22" + cache: "npm" - name: Install dependencies run: npm ci - - - # Required for the package command tests to work + - # Required for the package command tests to work name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 @@ -52,8 +54,8 @@ jobs: - uses: actions/checkout@v5 - uses: actions/setup-node@v5 with: - node-version: '22' - cache: 'npm' + node-version: "22" + cache: "npm" - name: Install dependencies run: npm ci @@ -68,8 +70,8 @@ jobs: - uses: actions/checkout@v5 - uses: actions/setup-node@v5 with: - node-version: '22' - cache: 'npm' + node-version: "22" + cache: "npm" - name: Install dependencies run: npm ci diff --git a/.github/workflows/pr_title.yml b/.github/workflows/pr_title.yml index 1db6484..fb72636 100644 --- a/.github/workflows/pr_title.yml +++ b/.github/workflows/pr_title.yml @@ -7,6 +7,9 @@ on: - edited - synchronize +permissions: + pull-requests: read + jobs: main: name: Validate PR title @@ -41,7 +44,7 @@ jobs: # special "[WIP]" prefix to indicate this state. This will avoid the # validation of the PR title and the pull request checks remain pending. # Note that a second check will be reported if this is enabled. - wip: true + wip: false # When using "Squash and merge" on a PR with only one commit, GitHub # will suggest using that commit message instead of the PR title for the # merge commit, and it's easy to commit this by mistake. Enable this option diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index c077c43..2021e55 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -4,6 +4,9 @@ on: tags: - "v*.*.*" +permissions: + contents: read + jobs: publish: name: Publish to npm diff --git a/.github/workflows/release_pr.yml b/.github/workflows/release_pr.yml index ddb8a6b..524d22a 100644 --- a/.github/workflows/release_pr.yml +++ b/.github/workflows/release_pr.yml @@ -4,6 +4,9 @@ on: branches: - main +permissions: + contents: read + jobs: release-please: runs-on: ubuntu-latest