-
Notifications
You must be signed in to change notification settings - Fork 0
Bugale/fmt1s #146
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
Closed
Closed
Bugale/fmt1s #146
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,25 @@ | ||
| --- | ||
| name: Cancel Stale Merge Queue Workflows | ||
| on: | ||
| merge_group: | ||
| types: | ||
| - destroyed | ||
|
|
||
| # See https://github.com/orgs/community/discussions/137976 | ||
| jobs: | ||
| cancel-workflows: | ||
| name: Cancel Workflow Runs | ||
| runs-on: sentinel-general-use-runner | ||
| permissions: | ||
| actions: write | ||
| contents: read | ||
| if: github.event.reason != 'merged' | ||
| steps: | ||
| - name: Cancel Workflow Runs | ||
| uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1 | ||
| with: | ||
| script: | | ||
| ;(await github.rest.actions.listWorkflowRunsForRepo({ ..context.repo, head_sha: context.sha })) | ||
| .data.workflow_runs | ||
| .filter(r => r.status !== 'completed' && r.id !== context.runId) | ||
| .forEach(r => github.rest.actions.cancelWorkflowRun({ ..context.repo, run_id: r.id })) | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,41 @@ | ||
| --- | ||
| name: Check Test | ||
| on: | ||
| - pull_request | ||
| jobs: | ||
| test: | ||
| name: test | ||
| runs-on: ubuntu-latest | ||
| permissions: | ||
| contents: read | ||
| pull-requests: write | ||
| timeout-minutes: 60 | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - name: Setup Go | ||
| uses: actions/setup-go@4dc6199c7b1a012772edbd06daecab0f50c9053c # v6.1.0 | ||
Check warningCode scanning / yamllint too few spaces before comment: expected 2 Warning
too few spaces before comment: expected 2
|
||
| with: | ||
| go-version: '1.25.5' | ||
| - name: Install GHAlint | ||
| run: go install github.com/suzuki-shunsuke/ghalint/cmd/ghalint@latest | ||
| - name: Run GHAlint | ||
| run: ~/go/bin/ghalint run -c .github/workflows/config/.ghalint.yml &> ghalint.txt | ||
| - name: Strip ANSII Escape Sequences | ||
| if: always() | ||
| run: sed -i -E "s/\x1B\[[0-9;]*[mK]//g" ghalint.txt | ||
| - name: upload | ||
| uses: actions/upload-artifact@v4 | ||
| if: always() | ||
| with: | ||
| name: ghalint-output | ||
| path: ghalint*.txt | ||
| - name: Convert | ||
| uses: ./ | ||
| if: always() | ||
| with: | ||
| inputFile: ghalint.txt | ||
| sarif: false | ||
| comment: true | ||
| summary: true | ||
| toolName: 'ghalint' | ||
| inputFormat: 'ghalint' | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| --- | ||
| excludes: # These `inherit: secret`s must be used as a workaround for reusable workflows running in an environment | ||
Check warningCode scanning / yamllint too few spaces before comment: expected 2 Warning
too few spaces before comment: expected 2
|
||
| - policy_name: deny_inherit_secrets | ||
| workflow_file_path: .github/workflows/build-manual.yml | ||
| job_name: sign-production | ||
| - policy_name: deny_inherit_secrets | ||
| workflow_file_path: .github/workflows/build-master.yml | ||
| job_name: sign-production | ||
| - policy_name: deny_inherit_secrets | ||
| workflow_file_path: .github/workflows/build-release.yml | ||
| job_name: sign-production | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1 @@ | ||
| Jan 22 09:42:27.969 ERR the job violates policies program=ghalint version="" workflow_file_path=.github/workflows/cancel-stale-merge-queue-workflows.yml policy_name=job_timeout_minutes_is_required reference=https://github.com/suzuki-shunsuke/ghalint/blob/main/docs/policies/012.md job_name=cancel-workflows error="job's timeout-minutes is required" | ||
| Jan 22 09:42:27.969 ERR the job violates policies program=ghalint version="" workflow_file_path=.github/workflows/cancel-stale-merge-queue-workflows.yml reference=https://github.com/suzuki-shunsuke/ghalint/blob/main/docs/policies/012.md job_name=cancel-workflows error="job's timeout-minutes is required" policy_name=job_timeout_minutes_is_required | ||
| Jan 22 09:42:27.969 ERR the job violates policies program=ghalint version="" reference=https://github.com/suzuki-shunsuke/ghalint/blob/main/docs/policies/012.md job_name=cancel-workflows error="job's timeout-minutes is required" policy_name=job_timeout_minutes_is_required workflow_file_path=.github/workflows/cancel-stale-merge-queue-workflows.yml | ||
| Jan 22 13:12:47.427 ERR the job violates policies program=ghalint version="" workflow_file_path=.github\workflows\cancel-stale-merge-queue-workflows.yml policy_name=job_timeout_minutes_is_required reference=https://github.com/suzuki-shunsuke/ghalint/blob/main/docs/policies/012.md job_name=cancel-workflows error="job's timeout-minutes is required" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| Jan 22 13:12:47.427 ERR the job violates policies program=ghalint version="" workflow_file_path=.github\workflows\cancel-stale-merge-queue-workflows.yml policy_name=job_timeout_minutes_is_required reference=https://github.com/suzuki-shunsuke/ghalint/blob/main/docs/policies/012.md job_name=cancel-workflows error="job's timeout-minutes is required" |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Check warning
Code scanning / yamllint
too few spaces before comment: expected 2 Warning