-
Notifications
You must be signed in to change notification settings - Fork 207
chore: Disable workflows in forked repositories and update GitHub Pac… #2163
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,75 +1,11 @@ | ||
| name: "CodeQL Advanced" | ||
| name: CodeQL Advanced (disabled in fork) | ||
|
|
||
| on: | ||
| push: | ||
| branches: [ "main" ] | ||
| pull_request: | ||
| branches: [ "main" ] | ||
| workflow_dispatch: | ||
|
|
||
| jobs: | ||
| analyze: | ||
| name: Analyze (${{ matrix.language }}) | ||
| runs-on: 'ubuntu-latest' | ||
| permissions: | ||
| # required for all workflows | ||
| security-events: write | ||
|
|
||
| # required to fetch internal or private CodeQL packs | ||
| packages: read | ||
|
|
||
| # only required for workflows in private repositories | ||
| actions: read | ||
| contents: read | ||
|
|
||
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| include: | ||
| - language: java-kotlin | ||
| build-mode: autobuild | ||
| - language: javascript-typescript # Need to add this even though we don't want this; otherwise Github complains. | ||
| build-mode: none | ||
| disabled: | ||
| if: ${{ false }} | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Checkout repository | ||
| uses: actions/checkout@v5 | ||
|
|
||
| # Add any setup steps before running the `github/codeql-action/init` action. | ||
| # This includes steps like installing compilers or runtimes (`actions/setup-node` | ||
| # or others). This is typically only required for manual builds. | ||
| # - name: Setup runtime (example) | ||
| # uses: actions/setup-example@v1 | ||
|
|
||
| # Initializes the CodeQL tools for scanning. | ||
| - name: Initialize CodeQL | ||
| uses: github/codeql-action/init@v4 | ||
| with: | ||
| languages: ${{ matrix.language }} | ||
| build-mode: ${{ matrix.build-mode }} | ||
| # JS is only used in Benchmarker, which runs locally and is irrelevant in terms of security. | ||
| # We do not want to analyze those. | ||
| config: | | ||
| paths-ignore: | ||
| - 'benchmark/**/*.html' | ||
| - 'benchmark/**/*.ftl' | ||
| - 'benchmark/**/*.js' | ||
|
|
||
| # If the analyze step fails for one of the languages you are analyzing with | ||
| # "We were unable to automatically build your code", modify the matrix above | ||
| # to set the build mode to "manual" for that language. Then modify this step | ||
| # to build your code. | ||
| # ℹ️ Command-line programs to run using the OS shell. | ||
| # 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun | ||
| - if: matrix.build-mode == 'manual' | ||
| shell: bash | ||
| run: | | ||
| echo 'If you are using a "manual" build mode for one or more of the' \ | ||
| 'languages you are analyzing, replace this with the commands to build' \ | ||
| 'your code, for example:' | ||
| echo ' make bootstrap' | ||
| echo ' make release' | ||
| exit 1 | ||
|
|
||
| - name: Perform CodeQL Analysis | ||
| uses: github/codeql-action/analyze@v4 | ||
| with: | ||
| category: "/language:${{matrix.language}}" | ||
| - run: echo "Disabled in this fork. Use the manual Publish to GitHub Packages workflow." | ||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -1,52 +1,11 @@ | ||||||
| name: Finish Release | ||||||
| name: Finish Release (disabled in fork) | ||||||
|
|
||||||
| on: | ||||||
| release: | ||||||
| types: [published] | ||||||
| workflow_dispatch: | ||||||
|
|
||||||
| jobs: | ||||||
| build: | ||||||
| env: | ||||||
| RELEASE_BRANCH_NAME: "__timefold_release_branch__" | ||||||
| disabled: | ||||||
| if: ${{ false }} | ||||||
|
||||||
| if: ${{ false }} | |
| if: ${{ github.event.repository.fork }} |
| Original file line number | Diff line number | Diff line change | ||
|---|---|---|---|---|
| @@ -1,173 +1,11 @@ | ||||
| name: "Base Workflow" | ||||
|
|
||||
| env: | ||||
| NODE_OPTIONS: "--max_old_space_size=4096" | ||||
| name: Base Workflow (disabled in fork) | ||||
|
|
||||
| on: | ||||
| push: | ||||
| branches: [main] | ||||
| pull_request: | ||||
| branches: [main] | ||||
| paths-ignore: | ||||
| - 'LICENSE*' | ||||
| - '.gitignore' | ||||
| - '**.md' | ||||
| - '**.adoc' | ||||
| - '*.txt' | ||||
| workflow_dispatch: | ||||
|
|
||||
| jobs: | ||||
| java: | ||||
| name: "Java Solver" | ||||
| concurrency: | ||||
| group: pull_request-${{ github.event_name }}-${{ github.head_ref }}-${{ matrix.os }}-${{ matrix.java-version }} | ||||
| cancel-in-progress: true | ||||
| runs-on: ${{matrix.os}} | ||||
| strategy: | ||||
| matrix: | ||||
| os: [ ubuntu-latest, ubuntu-24.04-arm, macos-latest, windows-latest ] | ||||
| java-version: [ 25 ] # Latest LTS if not Ubuntu | ||||
| include: | ||||
| - os: ubuntu-latest | ||||
| java-version: 17 | ||||
| - os: ubuntu-24.04-arm | ||||
| java-version: 17 | ||||
| - os: ubuntu-latest | ||||
| java-version: 21 | ||||
| - os: ubuntu-24.04-arm | ||||
| java-version: 21 | ||||
| timeout-minutes: 120 | ||||
| steps: | ||||
| - uses: actions/checkout@v5 | ||||
|
|
||||
| - uses: actions/setup-java@v5 | ||||
| with: | ||||
| java-version: ${{matrix.java-version}} | ||||
| distribution: 'temurin' | ||||
| cache: 'maven' | ||||
|
|
||||
| - name: Build and test timefold-solver | ||||
| run: ./mvnw -B verify | ||||
|
|
||||
| - name: Test Summary | ||||
| uses: test-summary/action@2920bc1b1b377c787227b204af6981e8f41bbef3 | ||||
| with: | ||||
| paths: "**/TEST-*.xml" | ||||
| show: "fail" | ||||
| if: always() | ||||
|
|
||||
| # Exists to check long-running goals, such as docs. | ||||
| # Tests are skipped as there is plenty of CI that runs them. | ||||
| java_full: | ||||
| name: "Java Solver (with flag -Dfull, no tests)" | ||||
| disabled: | ||||
| if: ${{ false }} | ||||
|
||||
| if: ${{ false }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This workflow’s only job is guarded by
if: ${{ false }}, so it will always be skipped and the “Disabled in this fork” message will never run; remove the job entirely or replace the condition with a fork/owner check that evaluates true where you want the message or functionality to execute.