Skip to content

add super linter

add super linter #185

Workflow file for this run

# ********************************************************************************
# Copyright (c) 2024 Contributors to the Eclipse Foundation
#
# See the NOTICE file(s) with this work for additional
# information regarding copyright ownership.
#
# This program and the accompanying materials are made
# available under the terms of the Apache Software License 2.0
# which is available at https://www.apache.org/licenses/LICENSE-2.0.
#
# SPDX-License-Identifier: Apache-2.0
# ********************************************************************************
name: Code Freeze Bot
# Controls when the workflow will run
on:
pull_request_target:
issue_comment:
types: [created]
permissions: read-all
jobs:
# Check if the pull request target branch matches the required branch-regex?
codefreeze_branch_check:
permissions:
contents: write
pull-requests: write
uses: adoptium/.github/.github/workflows/code-freeze-regex-branch.yml@main
with:
branch-regex: "^main$"
# Code freeze if branch-regex matches
codefreeze_if_branch_match:

Check failure on line 35 in .github/workflows/code-freeze.yml

View workflow run for this annotation

GitHub Actions / Code Freeze Bot

Invalid workflow file

The workflow is not valid. .github/workflows/code-freeze.yml (Line: 35, Col: 3): Error calling workflow 'adoptium/.github/.github/workflows/code-freeze.yml@main'. The workflow is requesting 'contents: write, pull-requests: write', but is only allowed 'contents: read, pull-requests: read'.
needs: codefreeze_branch_check
uses: adoptium/.github/.github/workflows/code-freeze.yml@main
if: (github.event_name == 'pull_request_target' || (github.event_name == 'issue_comment' && github.event.issue.pull_request)) && needs.codefreeze_branch_check.outputs.regex-matches == 'true'
secrets: inherit