content
stringlengths
1
103k
path
stringlengths
8
216
filename
stringlengths
2
179
language
stringclasses
15 values
size_bytes
int64
2
189k
quality_score
float64
0.5
0.95
complexity
float64
0
1
documentation_ratio
float64
0
1
repository
stringclasses
5 values
stars
int64
0
1k
created_date
stringdate
2023-07-10 19:21:08
2025-07-09 19:11:45
license
stringclasses
4 values
is_test
bool
2 classes
file_hash
stringlengths
32
32
version: 2\nupdates:\n - package-ecosystem: "github-actions"\n # default location of `.github/workflows`\n directory: "/"\n open-pull-requests-limit: 10\n schedule:\n interval: "weekly"\n\n - package-ecosystem: "nuget"\n # location of package manifests\n directory: "/"\n open-pull-requests-limit: 10\n schedule:\n interval: "daily"\n\n# Built with ❤ by [Pipeline Foundation](https://pipeline.foundation)
dataset_sample\yaml\gui-cs_Terminal.Gui\.github\dependabot.yml
dependabot.yml
YAML
426
0.8
0
0.2
react-lib
771
2025-01-22T12:25:54.390855
MIT
false
d509289cbeb071aaa19724f3372f31eb
name: Build and publish API docs\n\non:\n push:\n branches: [v1_release, v2_develop]\n\npermissions:\n id-token: write \n pages: write\n\njobs:\n deploy:\n name: Build and Deploy API docs to github-pages ${{ github.ref_name }}\n environment:\n name: github-pages\n url: ${{ steps.deployment.outputs.page_url }}\n runs-on: windows-latest\n steps:\n - name: Checkout\n #if: github.ref_name == 'v1_release' || github.ref_name == 'v1_develop'\n uses: actions/checkout@v4\n\n - name: DocFX Build\n #if: github.ref_name == 'v1_release' || github.ref_name == 'v1_develop'\n working-directory: docfx\n run: |\n dotnet tool install -g docfx\n $env:DOCFX_SOURCE_BRANCH_NAME="${{ github.ref_name }}"\n docfx metadata\n docfx build\n continue-on-error: false\n\n - name: Setup Pages\n #if: github.ref_name == 'v1_release' || github.ref_name == 'v1_develop'\n uses: actions/configure-pages@v5\n \n - name: Upload artifact\n #if: github.ref_name == 'v1_release' || github.ref_name == 'v1_develop'\n uses: actions/upload-pages-artifact@v3\n with:\n path: docfx/_site\n \n - name: Deploy to GitHub Pages\n if: github.ref_name == 'v1_release' || github.ref_name == 'v1_develop'\n id: deployment\n uses: actions/deploy-pages@v4\n with:\n token: ${{ secrets.GITHUB_TOKEN }}\n\n - name: v2_develop Repository Dispatch ${{ github.ref_name }}\n if: github.ref_name == 'v2_develop'\n uses: peter-evans/repository-dispatch@v3\n with:\n token: ${{ secrets.V2DOCS_TOKEN }}\n repository: gui-cs/Terminal.GuiV2Docs\n event-type: v2_develop_push\n client-payload: '{"ref": "${{ github.ref }}", "sha": "${{ github.sha }}"}'\n
dataset_sample\yaml\gui-cs_Terminal.Gui\.github\workflows\api-docs.yml
api-docs.yml
YAML
1,761
0.8
0.105263
0.081633
python-kit
666
2024-05-29T01:23:31.740205
BSD-3-Clause
false
de5b9432bdb9e585ea7dcd0015544b26
name: Ensure that Release builds are not broken\n\non:\n push:\n branches: [ v2_release, v2_develop ]\n paths-ignore:\n - '**.md'\n pull_request:\n branches: [ v2_release, v2_develop ]\n paths-ignore:\n - '**.md'\n \njobs:\n build_release:\n # Ensure that RELEASE builds are not broken\n runs-on: ubuntu-latest\n steps:\n - name: Checkout code\n uses: actions/checkout@v4\n\n - name: Setup .NET Core\n uses: actions/setup-dotnet@v4\n with:\n dotnet-version: 8.x\n dotnet-quality: 'ga'\n\n - name: Build Release Terminal.Gui\n run: dotnet build Terminal.Gui/Terminal.Gui.csproj --configuration Release\n\n - name: Pack Release Terminal.Gui\n run: dotnet pack Terminal.Gui/Terminal.Gui.csproj --configuration Release --output ./local_packages\n\n - name: Build Release Solution\n run: dotnet build --configuration Release\n
dataset_sample\yaml\gui-cs_Terminal.Gui\.github\workflows\build-release.yml
build-release.yml
YAML
885
0.8
0
0.035714
react-lib
398
2023-12-28T06:09:45.956412
BSD-3-Clause
false
309425bb918b0196183754e24278d245
name: Check for Duplicate UnitTests\non:\n push:\n branches: [ v2_release, v2_develop ]\n pull_request:\n branches: [ v2_release, v2_develop ]\n workflow_dispatch:\njobs:\n check-duplicates:\n runs-on: windows-latest\n steps:\n - uses: actions/checkout@v4\n - name: Run Duplicate Test Check\n run: pwsh -File ./Scripts/FindDuplicateTestMethodsInSameFileName.ps1 -solutionPath "$PWD"
dataset_sample\yaml\gui-cs_Terminal.Gui\.github\workflows\check-duplicates.yml
check-duplicates.yml
YAML
396
0.7
0.076923
0
python-kit
402
2025-03-13T13:21:52.692265
GPL-3.0
false
17b8979694ca3ad2d9a72c302438afe7
# For more info see https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#scanning-on-push\n\nname: "Code scanning"\n\non:\n push:\n branches: [main, v2_release]\n paths-ignore:\n - '**/*.md'\n - '**/*.txt'\n - '**/*.html'\n - docs\n - docfx\n pull_request:\n branches: [main, v2_release]\n paths-ignore:\n - '**/*.md'\n - '**/*.txt'\n - '**/*.html'\n - docs\n - docfx\n # Scan every Monday\n schedule:\n - cron: '20 14 * * 1' \n\njobs:\n CodeQL-Build:\n\n runs-on: ubuntu-latest\n\n steps:\n - name: Checkout repository\n uses: actions/checkout@v3\n with:\n # We must fetch at least the immediate parents so that if this is\n # a pull request then we can checkout the head.\n fetch-depth: 2\n\n # If this run was triggered by a pull request event, then checkout\n # the head of the pull request instead of the merge commit.\n #- run: git checkout HEAD^2\n # if: ${{ github.event_name == 'pull_request' }}\n \n # Initializes the CodeQL tools for scanning.\n - name: Initialize CodeQL\n uses: github/codeql-action/init@v2\n # Override language selection by uncommenting this and choosing your languages\n with:\n languages: csharp\n\n # Autobuild attempts to build any compiled languages (C/C++, C#, or Java).\n # If this step fails, then you should remove it and run the build manually (see below)\n - name: Autobuild\n uses: github/codeql-action/autobuild@v2\n\n # ℹ️ Command-line programs to run using the OS shell.\n # 📚 https://git.io/JvXDl\n\n # ✏️ If the Autobuild fails above, remove it and uncomment the following three lines\n # and modify them (or add more) to build your code if your project\n # uses a compiled language\n\n #- run: |\n # make bootstrap\n # make release\n\n - name: Perform CodeQL Analysis\n uses: github/codeql-action/analyze@v2\n
dataset_sample\yaml\gui-cs_Terminal.Gui\.github\workflows\codeql-analysis.yml
codeql-analysis.yml
YAML
2,011
0.8
0.073529
0.357143
awesome-app
419
2025-01-25T15:10:04.528823
GPL-3.0
false
d61f130f149a06102434ebd9da26376a
name: Publish Terminal.Gui\n\non:\n push:\n branches: [ v2_release, v2_develop ]\n tags:\n - v*\n paths-ignore:\n - '**.md'\n\njobs:\n publish:\n name: Build and Publish to Nuget.org\n runs-on: ubuntu-latest\n\n steps:\n - uses: actions/checkout@v4\n with:\n fetch-depth: 0 # fetch-depth is needed for GitVersion\n\n - name: Install GitVersion\n uses: gittools/actions/gitversion/setup@v3.1.11\n with:\n versionSpec: '6.0.x'\n\n - name: Determine Version\n uses: gittools/actions/gitversion/execute@v3.1.11\n with:\n useConfigFile: true\n updateAssemblyInfo: true\n id: gitversion # step id used as reference for output values\n\n - name: Setup dotnet\n uses: actions/setup-dotnet@v4\n with:\n dotnet-version: 8.0\n dotnet-quality: 'ga'\n \n - name: Install dependencies\n run: dotnet restore\n\n - name: Build Release\n run: |\n dotnet build Terminal.Gui/Terminal.Gui.csproj --no-incremental --nologo --force --configuration Release\n dotnet test Terminal.Gui/Terminal.Gui.csproj --configuration Release\n\n - name: Pack\n run: dotnet pack Terminal.Gui/Terminal.Gui.csproj -c Release --include-symbols -p:Version='${{ steps.gitversion.outputs.SemVer }}' \n\n # - name: Test to generate Code Coverage Report\n # run: |\n # sed -i 's/"stopOnFail": false/"stopOnFail": true/g' UnitTests/xunit.runner.json\n # dotnet test --verbosity normal --collect:"XPlat Code Coverage" --settings UnitTests/coverlet.runsettings\n # mv -v UnitTests/TestResults/*/*.* UnitTests/TestResults/\n\n # - name: Create Test Coverage Badge\n # uses: simon-k/dotnet-code-coverage-badge@v1.0.0\n # id: create_coverage_badge\n # with:\n # label: Unit Test Coverage\n # color: brightgreen\n # path: UnitTests/TestResults/coverage.opencover.xml\n # gist-filename: code-coverage.json\n # gist-id: 90ef67a684cb71db1817921a970f8d27\n # gist-auth-token: ${{ secrets.GIST_AUTH_TOKEN }} \n\n # - name: Print Code Coverage\n # run: |\n # echo "Code coverage percentage: ${{steps.create_coverage_badge.outputs.percentage}}%"\n # echo "Badge data: ${{steps.create_coverage_badge.outputs.badge}}"\n \n - name: Publish to NuGet.org\n run: dotnet nuget push Terminal.Gui/bin/Release/Terminal.Gui.${{ steps.gitversion.outputs.SemVer }}.nupkg --api-key ${{ secrets.NUGET_API_KEY }} \n
dataset_sample\yaml\gui-cs_Terminal.Gui\.github\workflows\publish.yml
publish.yml
YAML
2,463
0.8
0.027397
0.316667
python-kit
57
2023-09-27T07:25:26.170829
GPL-3.0
false
2d3a7a0b2e33718b980063ab403f613f
- name: Conceptual Docs & Deep Dives\n href: docs/\n\n- name: API\n href: api/\n\n- name: Source\n href: https://github.com/gui-cs/Terminal.Gui
dataset_sample\yaml\gui-cs_Terminal.Gui\docfx\toc.yml
toc.yml
YAML
139
0.8
0
0
vue-tools
124
2025-03-08T13:06:20.828237
Apache-2.0
false
2b2961d0b81def998577cf4e337042e7
- name: Overview\n href: index.md\n- name: Getting Started\n href: getting-started.md\n- name: What's new in v2\n href: newinv2.md\n- name: v1 To v2 Migration\n href: migratingfromv1.md \n- name: Arrangement\n href: arrangement.md\n- name: Configuration\n href: config.md\n- name: Cursor\n href: cursor.md\n- name: Dim.Auto Deep Dive\n href: dimauto.md\n- name: Drawing\n href: drawing.md\n- name: Drivers\n href: drivers.md\n- name: Events Deep Dive\n href: events.md\n- name: Keyboard\n href: keyboard.md\n- name: Layout Engine\n href: layout.md\n- name: Mouse\n href: mouse.md\n- name: Multi-Tasking\n href: mainloop.md\n- name: Navigation\n href: navigation.md\n- name: Popovers\n href: Popovers.md\n- name: View Deep Dive\n href: View.md \n- name: View List\n href: views.md\n- name: Scrolling\n href: scrolling.md\n- name: TableView Deep Dive\n href: tableview.md\n- name: TreeView Deep Dive\n href: treeview.md\n\n
dataset_sample\yaml\gui-cs_Terminal.Gui\docfx\docs\toc.yml
toc.yml
YAML
900
0.7
0
0
react-lib
331
2023-12-07T13:48:28.142340
Apache-2.0
false
00a5e481767889cb35a41f56b9daaa7d
# To get started with Dependabot version updates, you'll need to specify which\n# package ecosystems to update and where the package manifests are located.\n# Please see the documentation for all configuration options:\n# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates\n\nversion: 2\nupdates:\n\n# Maintain dependencies for GitHub Actions\n- package-ecosystem: "github-actions"\n directory: "/"\n schedule:\n interval: "daily"\n \n# Maintain dependencies for cargo\n- package-ecosystem: cargo\n directory: "/"\n schedule:\n interval: "daily"\n target-branch: "main"\n
dataset_sample\yaml\GyulyVGC_sniffnet\.github\dependabot.yml
dependabot.yml
YAML
615
0.8
0.2
0.352941
awesome-app
989
2024-02-21T09:28:21.701842
BSD-3-Clause
false
9bd6807656dd817fc7665d053a85ed60
# These are supported funding model platforms\n\ngithub: [GyulyVGC]\ncustom: ['https://www.paypal.com/donate/?hosted_button_id=Y4NRT2SBP6K2N']\npatreon: Sniffnet\nopen_collective: # Replace with a single Open Collective username\nko_fi: # Replace with a single Ko-fi username\ntidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel\ncommunity_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry\nliberapay: # Replace with a single Liberapay username\nissuehunt: # Replace with a single IssueHunt username\notechie: # Replace with a single Otechie username\nlfx_crowdfunding: # Replace with a single LFX Crowdfunding project-name e.g., cloud-foundry\n
dataset_sample\yaml\GyulyVGC_sniffnet\.github\FUNDING.yml
FUNDING.yml
YAML
698
0.8
0
0.083333
vue-tools
43
2023-12-18T11:40:58.541616
GPL-3.0
false
c473967fbb2c7ce7421dde5311fa33ce
name: I have a problem with the app ❌\ndescription: Create a report to help us improve Sniffnet.\n\nbody:\n - type: markdown\n attributes:\n value: |\n Thanks for taking the time to fill out this bug report!\n - type: checkboxes\n attributes:\n label: Is there an existing issue for this?\n description: |\n Please, search [the existing issues] and see if an issue already exists for the bug you encountered.\n\n [the existing issues]: https://github.com/GyulyVGC/sniffnet/issues\n options:\n - label: I have searched the existing issues.\n required: true\n - type: textarea\n attributes:\n label: What's the problem?\n id: what-happened\n description: |\n What problem are you having? Please, also provide the steps to reproduce it.\n validations:\n required: true\n - type: dropdown\n id: version\n attributes:\n label: How did you install the app?\n description: |\n Select the strategy you used to install Sniffnet.\n options:\n - downloaded one of the provided packages\n - installed from crates.io\n - built locally by cloning the repository\n validations:\n required: true\n - type: dropdown\n id: os\n attributes:\n label: Operating System\n description: Select the operating system you are using.\n options:\n - Windows\n - macOS\n - Linux\n - FreeBSD\n - OpenBSD\n - Other\n validations:\n required: true\n - type: textarea\n attributes:\n label: Additional context\n id: additional-info\n description: |\n Do you have any additional information to report? You can optionally include pictures or other resources.\n validations:\n required: false\n
dataset_sample\yaml\GyulyVGC_sniffnet\.github\ISSUE_TEMPLATE\bug_report.yml
bug_report.yml
YAML
1,762
0.95
0.066667
0
react-lib
609
2023-11-26T18:42:23.392543
GPL-3.0
false
4e0283a4afe6fe06f7f6e0bb5ff782d5
blank_issues_enabled: true\ncontact_links:\n - name: I want to support the project 💖\n url: https://github.com/sponsors/GyulyVGC\n about: Become an official sponsor.\n
dataset_sample\yaml\GyulyVGC_sniffnet\.github\ISSUE_TEMPLATE\config.yml
config.yml
YAML
172
0.8
0
0
react-lib
7
2023-08-15T18:06:58.898299
Apache-2.0
false
8d3edabac0f59c35923621a1d9a8a467
name: I have a suggestion 💡\ndescription: Suggest an idea for Sniffnet (you can request for new features, or other kinds of improvement).\n\nbody:\n - type: markdown\n attributes:\n value: |\n Thanks for taking the time to fill out this report!\n - type: checkboxes\n attributes:\n label: Is there an existing issue for this?\n description: |\n Please, search [the existing issues] and see if an issue already exists for your request.\n\n [the existing issues]: https://github.com/GyulyVGC/sniffnet/issues\n options:\n - label: I have searched the existing issues.\n required: true\n - type: textarea\n attributes:\n label: Describe the solution you'd like\n id: solution\n description: |\n Please, describe what you would like to happen.\n validations:\n required: true\n - type: textarea\n attributes:\n label: Is your feature request related to a problem?\n id: is-problem\n description: |\n A clear and concise description of what the problem is, if any. Example: I'm always frustrated when [...]\n validations:\n required: false\n
dataset_sample\yaml\GyulyVGC_sniffnet\.github\ISSUE_TEMPLATE\feature_request.yml
feature_request.yml
YAML
1,137
0.95
0.205882
0
vue-tools
275
2023-08-25T12:30:16.938146
MIT
false
41fe2cf4208094eb35dcc50e8b30f6cf
name: Package\n\non:\n workflow_dispatch:\n\njobs:\n\n build:\n runs-on: ${{ matrix.os }}-latest\n strategy:\n fail-fast: true\n matrix:\n include:\n - os: ubuntu\n arch: i386\n target: i686-unknown-linux-gnu\n - os: ubuntu\n arch: armhf\n target: armv7-unknown-linux-gnueabihf\n - os: ubuntu\n arch: amd64\n target: x86_64-unknown-linux-gnu\n - os: ubuntu\n arch: arm64\n target: aarch64-unknown-linux-gnu\n - os: macos\n arch: amd64\n target: x86_64-apple-darwin\n - os: macos\n arch: arm64\n target: aarch64-apple-darwin\n - os: windows\n arch: i386\n target: i686-pc-windows-msvc\n - os: windows\n arch: amd64\n target: x86_64-pc-windows-msvc\n\n steps:\n - name: Checkout repository\n uses: actions/checkout@v4\n\n - name: Install Linux dependencies\n if: matrix.os == 'ubuntu'\n run: sudo apt-get update -y && sudo apt-get install -y libpcap-dev libasound2-dev libgtk-3-dev\n\n - name: Install Windows dependencies\n if: matrix.os == 'windows'\n env:\n NPCAP_OEM_URL: ${{ secrets.NPCAP_OEM_URL }}\n shell: powershell\n run: |\n Write-Host "::group::Npcap SDK"\n $ARCH = "${{ matrix.arch }}"\n Invoke-WebRequest -Uri "https://npcap.com/dist/npcap-sdk-1.13.zip" -OutFile "$env:TEMP\npcap-sdk.zip" -Verbose\n Expand-Archive -LiteralPath "$env:TEMP\npcap-sdk.zip" -DestinationPath "$env:TEMP\npcap-sdk" -Verbose\n $LibPath = switch ($ARCH)\n {\n "i386" { "Lib" }\n "amd64" { "Lib\x64" }\n default { throw "$ARCH is not supported!" }\n }\n Add-Content -Path "$env:GITHUB_ENV" -Value "LIB=$env:TEMP\npcap-sdk\$LibPath"\n Write-Host "::endgroup::"\n Write-Host "::group::Npcap DLL"\n Invoke-WebRequest -Uri "$env:NPCAP_OEM_URL" -OutFile "$env:TEMP\npcap-oem.exe" -Verbose\n Start-Process -FilePath "$env:TEMP\npcap-oem.exe" -ArgumentList "/S" -Wait\n Write-Host "::endgroup::"\n\n - name: Install Rust\n uses: dtolnay/rust-toolchain@stable\n with:\n targets: ${{ matrix.target }}\n\n - name: Check crate\n if: matrix.os == 'macos' || matrix.os == 'windows' || matrix.os == 'ubuntu' && matrix.arch == 'amd64'\n run: cargo publish --dry-run --target ${{ matrix.target }}\n\n - name: Clippy (release mode)\n run: cargo clippy --release -- -D warnings\n\n - name: Test (release mode)\n if: matrix.os == 'macos' || matrix.os == 'ubuntu' || matrix.os == 'windows' && matrix.arch == 'amd64'\n run: |\n cargo test --release --verbose -- --nocapture &&\n cargo clean\n\n - name: Install Cross\n if: matrix.os == 'ubuntu'\n run: cargo install cross --git https://github.com/cross-rs/cross\n\n - name: Build binary (Linux)\n if: matrix.os == 'ubuntu'\n run: cross build --release --target ${{ matrix.target }}\n\n - name: Build binary (macOS/Windows)\n if: matrix.os == 'macos' || matrix.os == 'windows'\n run: cargo build --release --target ${{ matrix.target }}\n\n - name: Upload build artifacts\n uses: actions/upload-artifact@v4\n with:\n name: build-${{ matrix.os }}-${{ matrix.target }}\n path: |\n target/*/release/sniffnet\n target/*/release/sniffnet.exe\n if-no-files-found: error\n\n deb:\n runs-on: ubuntu-latest\n container:\n image: debian:latest\n needs: build\n strategy:\n fail-fast: true\n matrix:\n include:\n - target: i686-unknown-linux-gnu\n arch: i386\n - target: armv7-unknown-linux-gnueabihf\n arch: armhf\n - target: x86_64-unknown-linux-gnu\n arch: amd64\n - target: aarch64-unknown-linux-gnu\n arch: arm64\n\n steps:\n - name: Checkout repository\n uses: actions/checkout@v4\n\n - name: Install dependencies\n run: apt-get update -y && apt-get install -y curl build-essential\n\n - name: Install Rust\n uses: dtolnay/rust-toolchain@stable\n with:\n targets: ${{ matrix.target }}\n\n - name: Install packaging tools\n run: cargo install cargo-deb\n\n - uses: actions/download-artifact@v4\n with:\n name: build-ubuntu-${{ matrix.target }}\n path: target/\n\n - name: Package for Debian-based Linux distros\n shell: bash\n run: |\n mkdir artifacts\n cargo deb --no-build --no-strip --target ${{ matrix.target }}\n mv target/${{ matrix.target }}/debian/*.deb artifacts/Sniffnet_LinuxDEB_${{ matrix.arch }}.deb\n\n - name: Upload package artifacts\n uses: actions/upload-artifact@v4\n with:\n name: deb-${{ matrix.arch }}\n path: artifacts/\n if-no-files-found: error\n\n rpm:\n runs-on: ubuntu-latest\n container:\n image: fedora:latest\n needs: build\n strategy:\n fail-fast: true\n matrix:\n include:\n - arch: x86_64\n target: x86_64-unknown-linux-gnu\n - arch: aarch64\n target: aarch64-unknown-linux-gnu\n\n steps:\n - name: Checkout repository\n uses: actions/checkout@v4\n\n - name: Install dependencies\n run: dnf update -y && dnf install -y @development-tools patchelf\n\n - name: Install Rust\n uses: dtolnay/rust-toolchain@stable\n with:\n targets: ${{ matrix.target }}\n\n - name: Install packaging tools\n run: cargo install cargo-generate-rpm\n\n - uses: actions/download-artifact@v4\n with:\n name: build-ubuntu-${{ matrix.target }}\n path: target/\n\n - name: Package for RPM-based Linux distros\n shell: bash\n run: |\n mkdir artifacts\n patchelf --replace-needed libpcap.so.0.8 libpcap.so.1 target/${{ matrix.target }}/release/sniffnet\n cargo generate-rpm --target ${{ matrix.target }}\n mv target/${{ matrix.target }}/generate-rpm/*.rpm artifacts/Sniffnet_LinuxRPM_${{ matrix.arch }}.rpm\n\n - name: Upload package artifacts\n uses: actions/upload-artifact@v4\n with:\n name: rpm-${{ matrix.arch }}\n path: artifacts/\n if-no-files-found: error\n\n dmg:\n runs-on: macos-latest\n needs: build\n strategy:\n fail-fast: true\n matrix:\n include:\n - arch: Intel\n target: x86_64-apple-darwin\n - arch: AppleSilicon\n target: aarch64-apple-darwin\n\n steps:\n - name: Checkout repository\n uses: actions/checkout@v4\n\n - name: Install Rust\n uses: dtolnay/rust-toolchain@stable\n\n - name: Install packaging tools\n run: |\n cargo install toml-cli\n brew install create-dmg\n\n - uses: actions/download-artifact@v4\n with:\n name: build-macos-${{ matrix.target }}\n path: target/\n\n - name: Package for macOS\n shell: bash\n run: |\n VERSION=$(toml get Cargo.toml package.version --raw)\n sed -i'.bak' -e "s/0\.0\.0/${VERSION}/g" -e "s/fffffff/${GITHUB_SHA:0:7}/g" resources/packaging/macos/Info.plist\n mkdir artifacts\n mkdir -p target/release/bundle/osx/Sniffnet.app/Contents/{MacOS,Resources}\n cp resources/packaging/macos/Info.plist \\n target/release/bundle/osx/Sniffnet.app/Contents/\n cp resources/packaging/macos/graphics/sniffnet.icns \\n target/release/bundle/osx/Sniffnet.app/Contents/Resources/\n chmod +x target/${{ matrix.target }}/release/sniffnet\n cp target/${{ matrix.target }}/release/sniffnet \\n target/release/bundle/osx/Sniffnet.app/Contents/MacOS/\n cp resources/packaging/macos/wrapper.sh \\n target/release/bundle/osx/Sniffnet.app/Contents/MacOS/\n create-dmg \\n --volname "Sniffnet Installer" \\n --background "resources/packaging/macos/graphics/dmg_bg.png" \\n --window-pos 200 120 \\n --window-size 900 450 \\n --icon-size 100 \\n --app-drop-link 620 240 \\n --icon "Sniffnet.app" 300 240 \\n --hide-extension "Sniffnet.app" \\n "artifacts/Sniffnet_macOS_${{ matrix.arch }}.dmg" \\n "target/release/bundle/osx/"\n\n - name: Upload package artifacts\n uses: actions/upload-artifact@v4\n with:\n name: dmg-${{ matrix.arch }}\n path: artifacts/\n if-no-files-found: error\n\n msi:\n runs-on: windows-latest\n needs: build\n strategy:\n fail-fast: true\n matrix:\n include:\n - arch: 32-bit\n target: i686-pc-windows-msvc\n - arch: 64-bit\n target: x86_64-pc-windows-msvc\n\n steps:\n - name: Checkout repository\n uses: actions/checkout@v4\n\n - name: Install dependencies\n shell: powershell\n run: |\n Write-Host "::group::WiX Toolset"\n Invoke-WebRequest `\n -Uri "https://github.com/wixtoolset/wix3/releases/download/wix3112rtm/wix311-binaries.zip" `\n -OutFile "$env:TEMP\wix-binaries.zip" -Verbose\n Expand-Archive -LiteralPath "$env:TEMP\wix-binaries.zip" -DestinationPath "$env:TEMP\wix" -Verbose\n Set-Item -Path env:Path -Value "$env:Path;$env:TEMP\wix"\n Write-Host "::endgroup::"\n\n - name: Install Rust\n uses: dtolnay/rust-toolchain@stable\n with:\n targets: ${{ matrix.target }}\n\n - name: Install packaging tools\n run: cargo install cargo-wix\n\n - uses: actions/download-artifact@v4\n with:\n name: build-windows-${{ matrix.target }}\n path: target/\n\n - name: Package for Microsoft Windows\n shell: powershell\n run: |\n New-Item -ItemType Directory -Path artifacts\n cargo wix --no-build --nocapture --target ${{ matrix.target }}\n Move-Item -Path target\wix\sniffnet*.msi -Destination .\artifacts\Sniffnet_Windows_${{ matrix.arch }}.msi\n\n - name: Upload package artifacts\n uses: actions/upload-artifact@v4\n with:\n name: msi-${{ matrix.arch }}\n path: artifacts/\n if-no-files-found: error\n
dataset_sample\yaml\GyulyVGC_sniffnet\.github\workflows\package.yml
package.yml
YAML
10,451
0.8
0.052147
0
python-kit
806
2025-06-05T04:31:12.365364
Apache-2.0
false
8dc2dff29a0cdd9e6139778c79f174ec
name: Rust\n\non:\n push:\n branches:\n - '*'\n pull_request:\n branches:\n - '*'\n workflow_call:\n secrets:\n NPCAP_OEM_URL:\n required: true\n CODECOV_TOKEN:\n required: true\n\nenv:\n CARGO_TERM_COLOR: always\n\n# Linters inspired from here: https://github.com/actions-rs/meta/blob/master/recipes/quickstart.md\njobs:\n\n rust:\n name: ${{ matrix.os }}-latest\n runs-on: ${{ matrix.os }}-latest\n strategy:\n fail-fast: true\n matrix:\n include:\n - os: ubuntu\n - os: macos\n - os: windows\n\n steps:\n - uses: actions/checkout@v4\n - uses: dtolnay/rust-toolchain@stable\n with:\n components: rustfmt, clippy\n\n - name: Install Linux dependencies\n if: matrix.os == 'ubuntu'\n run: sudo apt-get update -y && sudo apt-get install -y libpcap-dev libasound2-dev libgtk-3-dev\n\n - name: Install Windows dependencies\n if: matrix.os == 'windows' && github.event_name != 'pull_request'\n run: |\n Invoke-WebRequest -Uri "https://npcap.com/dist/npcap-sdk-1.13.zip" -OutFile "C:/npcap-sdk.zip"\n Expand-Archive -LiteralPath C:/npcap-sdk.zip -DestinationPath C:/npcap-sdk\n echo "LIB=C:/npcap-sdk/Lib/x64" >> $env:GITHUB_ENV\n Invoke-WebRequest -Uri ${{secrets.NPCAP_OEM_URL}} -OutFile C:/npcap-oem.exe\n C:/npcap-oem.exe /S\n\n - name: fmt\n run: cargo fmt --all -- --check\n\n - name: build\n if: matrix.os != 'windows' || github.event_name != 'pull_request'\n run: cargo build --verbose\n\n - name: clippy\n if: matrix.os != 'windows' || github.event_name != 'pull_request'\n run: cargo clippy -- -D warnings\n\n - name: test\n if: matrix.os != 'windows' || github.event_name != 'pull_request'\n run: cargo test --verbose -- --nocapture\n\n# - name: Install cargo-llvm-cov\n# if: matrix.os == 'ubuntu'\n# uses: taiki-e/install-action@cargo-llvm-cov\n#\n# - name: Generate code coverage\n# if: matrix.os == 'ubuntu'\n# run: cargo llvm-cov --all-features --workspace --lcov --output-path lcov.info --include-build-script --no-cfg-coverage\n#\n# - name: Upload coverage to Codecov\n# if: matrix.os == 'ubuntu'\n# uses: codecov/codecov-action@v5\n# with:\n# files: lcov.info\n# fail_ci_if_error: false\n# token: ${{ secrets.CODECOV_TOKEN }}\n
dataset_sample\yaml\GyulyVGC_sniffnet\.github\workflows\rust.yml
rust.yml
YAML
2,430
0.95
0.097561
0.228571
awesome-app
642
2024-07-27T22:42:59.892473
BSD-3-Clause
false
e47b71b7f2769043e1860eb3f9109785
name: CI\n\non: [push, pull_request]\n\npermissions:\n contents: read # to fetch code (actions/checkout)\n\njobs:\n build:\n strategy:\n fail-fast: false\n matrix:\n java-version: [11, 17]\n name: Java ${{ matrix.java-version }}\n runs-on: ubuntu-latest\n steps:\n - uses: actions/checkout@v3\n with:\n fetch-depth: 1\n - name: Set up JDK ${{ matrix.java-version }}\n uses: actions/setup-java@v3\n with:\n java-version: ${{ matrix.java-version }}\n distribution: temurin\n - name: Test\n run: |\n cd h2\n echo $JAVA_OPTS\n export JAVA_OPTS=-Xmx512m\n ./build.sh jar testCI\n
dataset_sample\yaml\h2database_h2database\.github\workflows\CI.yml
CI.yml
YAML
654
0.8
0
0
vue-tools
707
2024-04-06T11:00:39.784426
BSD-3-Clause
false
f9b00d36d629706aeaa840c209b46925
# These are supported funding model platforms\n\ngithub: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]\npatreon: # Replace with a single Patreon username\nopen_collective: handycontrol # Replace with a single Open Collective username\nko_fi: # Replace with a single Ko-fi username\ntidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel\ncommunity_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry\nliberapay: # Replace with a single Liberapay username\nissuehunt: # Replace with a single IssueHunt username\notechie: # Replace with a single Otechie username\ncustom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']\n
dataset_sample\yaml\HandyOrg_HandyControl\.github\FUNDING.yml
FUNDING.yml
YAML
724
0.8
0
0.090909
react-lib
411
2025-06-04T22:15:19.593496
Apache-2.0
false
9808086072b6b5571bf196a72b513f28
blank_issues_enabled: false\ncontact_links:\n - name: Ask a Question\n url: https://github.com/HandyOrg/HandyControl/discussions/category_choices\n about: Please ask and answer questions for HandyControl here.\n - name: Read the Docs (Chinese)\n url: http://handyorg.github.io\n about: Be sure you've read the docs!\n - name: Read the Docs (English)\n url: http://ghost1372.github.io\n about: Be sure you've read the docs! \n
dataset_sample\yaml\HandyOrg_HandyControl\.github\ISSUE_TEMPLATE\config.yml
config.yml
YAML
453
0.8
0.090909
0
node-utils
802
2023-08-22T08:07:19.616509
BSD-3-Clause
false
501b72fa8dedfbf570549cf8f210ea9c
name: Build\n\non: [push, pull_request]\n\njobs:\n build:\n runs-on: windows-latest\n steps:\n - name: Checkout\n uses: actions/checkout@v4\n with:\n fetch-depth: 0\n \n - name: Setup .NET Core SDK\n uses: actions/setup-dotnet@v4\n with:\n dotnet-version: '8.0.x'\n\n - name: Build\n working-directory: ./build\n run: |\n dotnet new tool-manifest\n dotnet tool install cake.tool --version 4.0.0\n dotnet tool install minver-cli --version 3.0.0\n dotnet cake\n
dataset_sample\yaml\HandyOrg_HandyControl\.github\workflows\build.yml
build.yml
YAML
569
0.7
0
0
react-lib
272
2025-06-19T13:11:38.198437
MIT
false
2139f9d699b253904c6ade821810dbbe
name: Bump up version\n\non:\n workflow_dispatch:\n inputs:\n pre_release:\n description: 'is preview'\n type: boolean\n required: true\n default: false\n\njobs:\n bump-up-version:\n runs-on: windows-latest\n steps:\n - name: Checkout repo\n uses: actions/checkout@v4\n with:\n fetch-depth: 0\n ref: ${{ github.head_ref }}\n\n - name: Setup .NET Core SDK\n uses: actions/setup-dotnet@v4\n with:\n dotnet-version: '8.0.x'\n\n - name: Publish\n working-directory: ./build\n run: |\n git config --local user.name "${{ github.actor }}"\n git config --local user.email "836904362@qq.com"\n dotnet new tool-manifest\n dotnet tool install cake.tool --version 4.0.0\n dotnet tool install minver-cli --version 3.0.0\n dotnet cake --username="${{ github.actor }}" --email="836904362@qq.com" --pre-release=${{ inputs.pre_release }}\n\n - name: Push git changes\n uses: ad-m/github-push-action@master\n with:\n github_token: ${{ secrets.GITHUB_TOKEN }}\n branch: ${{ github.ref }}\n tags: true\n\n - name: Push to nuget\n run: dotnet nuget push ./build/outputs/nuget/HandyControl.*nupkg -k ${{ secrets.NUGETTOKEN }}\n\n - name: Create github release\n uses: softprops/action-gh-release@v2\n with:\n # For maximum compatibility, we choose the .net40\n files: ./build/outputs/installer/net40/*\n body_path: ./build/outputs/CHANGELOG.md\n token: ${{ secrets.GITHUB_TOKEN }}\n prerelease: ${{ inputs.pre_release }}\n
dataset_sample\yaml\HandyOrg_HandyControl\.github\workflows\bump-up-version.yml
bump-up-version.yml
YAML
1,662
0.95
0
0.021277
vue-tools
676
2025-02-04T16:26:38.880791
GPL-3.0
false
e45f0b31db899abb8006216fe232ac7d
name: Code format check\n\non:\n push:\n branches:\n - master\njobs:\n dotnet-format:\n runs-on: windows-latest\n steps:\n\n - name: Checkout repo\n uses: actions/checkout@v4\n with:\n fetch-depth: 0\n ref: ${{ github.head_ref }}\n\n\n - name: Setup .NET Core SDK\n uses: actions/setup-dotnet@v4\n with:\n dotnet-version: '8.0.x'\n\n # 代码文件编码规范机器人,详细请看 [dotnet 在 GitHub 的 Action 上部署自动代码编码规范机器人](https://blog.lindexi.com/post/dotnet-%E5%9C%A8-GitHub-%E7%9A%84-Action-%E4%B8%8A%E9%83%A8%E7%BD%B2%E8%87%AA%E5%8A%A8%E4%BB%A3%E7%A0%81%E7%BC%96%E7%A0%81%E8%A7%84%E8%8C%83%E6%9C%BA%E5%99%A8%E4%BA%BA.html)\n - name: Install dotnetCampus.EncodingNormalior\n run: dotnet tool update -g dotnetCampus.EncodingNormalior\n\n - name: Fix encoding\n run: EncodingNormalior -f . --TryFix true\n\n # 代码格式化机器人,详细请看 [dotnet 基于 dotnet format 的 GitHub Action 自动代码格式化机器人](https://blog.lindexi.com/post/dotnet-%E5%9F%BA%E4%BA%8E-dotnet-format-%E7%9A%84-GitHub-Action-%E8%87%AA%E5%8A%A8%E4%BB%A3%E7%A0%81%E6%A0%BC%E5%BC%8F%E5%8C%96%E6%9C%BA%E5%99%A8%E4%BA%BA.html )\n - name: Install dotnet-format\n run: dotnet tool install -g dotnet-format\n\n - name: Run dotnet format\n run: dotnet format src\HandyControl.sln\n\n - name: Commit files\n # 下面将使用机器人的账号,你可以替换为你自己的账号\n run: |\n git config --local user.name "github-actions-dotnet-formatter[bot]"\n git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"\n git commit -a -m 'Automated dotnet-format update'\n continue-on-error: true\n\n - name: Create Pull Request\n uses: peter-evans/create-pull-request@v3\n with:\n title: '[Bot] Automated PR to fix formatting errors'\n body: |\n Automated PR to fix formatting errors\n committer: GitHub <noreply@github.com>\n author: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>\n # 以下是给定代码审查者,需要设置仓库有权限的开发者\n assignees: NaBian\n reviewers: NaBian\n # 对应的上传分支\n branch: t/bot/fix-codeformatting\n
dataset_sample\yaml\HandyOrg_HandyControl\.github\workflows\dotnet-format.yml
dotnet-format.yml
YAML
2,392
0.8
0
0.104167
node-utils
535
2024-04-20T16:26:40.358509
Apache-2.0
false
8e61ac01710bac4aa9bc8c77d470d644
name: Push to myget\n\non: workflow_dispatch\n\njobs:\n push-to-myget:\n runs-on: windows-latest\n steps:\n - name: checkout\n uses: actions/checkout@v4\n with:\n fetch-depth: 0\n\n - name: Setup .NET Core SDK\n uses: actions/setup-dotnet@v4\n with:\n dotnet-version: '8.0.x'\n\n - name: setup nuget.exe\n uses: NuGet/setup-nuget@v1.0.5\n\n - name: build and push\n shell: pwsh\n run: |\n cd build\n .\build.ps1\n nuget pack build-for-myget.nuspec -version 3.5.0-beta.${env:GITHUB_RUN_NUMBER}\n $nupkgName = @(gci *.nupkg)[0].Name\n $mygetSourcePath = "https://www.myget.org/F/handycontrol"\n nuget setApiKey ${{ secrets.MYGETTOKEN }} -Source $mygetSourcePath\n nuget push $nupkgName -Source $mygetSourcePath\n
dataset_sample\yaml\HandyOrg_HandyControl\.github\workflows\push-to-myget.yml
push-to-myget.yml
YAML
836
0.8
0.032258
0
python-kit
180
2024-01-12T05:43:38.535145
Apache-2.0
false
f8e0f0a19f21aa0fda76955638fa5eda
# Hexo Configuration\n## Docs: https://hexo.io/docs/configuration.html\n## Source: https://github.com/hexojs/hexo/\n\n# Site\ntitle: HandyOrg\nsubtitle: everything can be handy\ndescription: everything can be handy\nkeywords:\nauthor: HandyOrg\nlanguage: zh-CN\ntimezone:\n\n# URL\n## If your site is put in a subdirectory, set url as 'http://yoursite.com/child' and root as '/child/'\nurl: http://yoursite.com\nroot: /\npermalink: :year/:month/:day/:title/\npermalink_defaults:\n\n# Directory\nsource_dir: source\npublic_dir: public\ntag_dir: tags\narchive_dir: archives\ncategory_dir: categories\ncode_dir: downloads/code\ni18n_dir: :lang\nskip_render:\n\n# Writing\nnew_post_name: :title.md # File name of new posts\ndefault_layout: post\ntitlecase: false # Transform title into titlecase\nexternal_link: true # Open external links in new tab\nfilename_case: 0\nrender_drafts: false\npost_asset_folder: false\nrelative_link: false\nfuture: true\nhighlight:\n enable: true\n line_number: true\n auto_detect: false\n tab_replace:\n \n# Home page setting\n# path: Root path for your blogs index page. (default = '')\n# per_page: Posts displayed per page. (0 = disable pagination)\n# order_by: Posts order. (Order by date descending by default)\nindex_generator:\n path: ''\n per_page: 10\n order_by: -date\n \n# Category & Tag\ndefault_category: uncategorized\ncategory_map:\ntag_map:\n\n# Date / Time format\n## Hexo uses Moment.js to parse and display date\n## You can customize the date format as defined in\n## http://momentjs.com/docs/#/displaying/format/\ndate_format: YYYY-MM-DD\ntime_format: HH:mm:ss\n\n# Pagination\n## Set per_page to 0 to disable pagination\nper_page: 10\npagination_dir: page\n\n# Extensions\n## Plugins: https://hexo.io/plugins/\n## Themes: https://hexo.io/themes/\ntheme: next\n\n# Deployment\n## Docs: https://hexo.io/docs/deployment.html\ndeploy:\n type:\n\nsearch:\n path: search.xml\n field: page\n format: html\n limit: 10000
dataset_sample\yaml\HandyOrg_HandyControl\doc\_config.yml
_config.yml
YAML
1,889
0.8
0.011628
0.315789
react-lib
141
2025-04-06T19:02:38.716724
GPL-3.0
false
d65bfe3bfe4fdad8ef2e87603ce580fc
language: node_js\n#node_js: node\nnode_js: lts/*\n\ncache:\n directories:\n - node_modules\n\ninstall: npm install\n\nbefore_script:\n - npm install -g gulp\n\naddons:\n browserstack:\n username: "ivannginx1"\n access_key:\n secure: "NutOhdgtUdBUXMPZhy8X1F1Jq+tan1LeNOV0FArBt15SNlxtNArqhiyTi4XnG9MPruX4306aGF2RBrKso+OiGNRdGtRGngH613Q0GWNtlC/boMqnI7fHqLIyCs6S12y2uA8PK4Ifxg9bZ0VtCTYYbMy+p1KvBM//L12vmtfdnby8z5Qvex3tB3dLoPOR50CKkINHJVDLm+iVRFrdz4/83oDsulZSRRGIaxu5taDWPIcp3fYZtre2Nc+RXcsyFDyjN7U0Hvr5tKBbloJxXEQEBv2xLkMOtp85nmCPD06s1Il8Wus1ux3raVsfUyaW5FpNX37Jeb5e00RQUM1wgU5m75H6qiGwDvQswbugJG0i/a2nNfsgVmbrSZdMnkHcx2Uxmrw4ejyEP5NSrJSBi05Ck1fQ4UsZ4Qkdf1fd04SI0LpLWt43eoNO/7rHKsQoP4LCX9gxKUuC075NEBLODyJ529RYfA6dKKwwH6o0ZbOgASmCoAWaM65g4+FHRnJcKL/Kj9ZWklQtRa7/ynlHaA65jefFS2lB8Ut6d3rXDDBih9mIrwV1uUaEH96xgAN42bgU/vY6FGzNkDOYZqj4YfsepDM0wbOsslFie7JZq7iFjsYvrXqLvYUMk37AZwQ2Sb6uH4tIT4Qw/4oZfDzA1En3/8HdZJ28nKW/lzjwMSqheIY="\n
dataset_sample\yaml\HandyOrg_HandyControl\doc\themes\next\.travis.yml
.travis.yml
YAML
921
0.8
0
0.071429
awesome-app
20
2025-06-17T17:28:56.985550
Apache-2.0
false
77458e6833510524589d4d15111ccc2a
files:\n - source: /languages/en.yml\n translation: /languages/%two_letters_code%.%file_extension%\n languages_mapping:\n two_letters_code:\n zh-CN: zh-CN\n zh-TW: zh-TW\n zh-HK: zh-HK\n pt-BR: pt-BR\n
dataset_sample\yaml\HandyOrg_HandyControl\doc\themes\next\crowdin.yml
crowdin.yml
YAML
232
0.7
0
0
react-lib
221
2024-10-05T03:02:08.049542
Apache-2.0
false
580bd8d72e3b4ff2e7f3f032c0c1c1ac
# ---------------------------------------------------------------\n# Theme Core Configuration Settings\n# See: https://theme-next.org/docs/theme-settings/\n# ---------------------------------------------------------------\n\n# If false, merge configs from `_data/next.yml` into default configuration (rewrite).\n# If true, will fully override default configuration by options from `_data/next.yml` (override). Only for NexT settings.\n# And if true, all config from default NexT `_config.yml` must be copied into `next.yml`. Use if you know what you are doing.\n# Useful if you want to comment some options from NexT `_config.yml` by `next.yml` without editing default config.\noverride: false\n\n# Allow to cache content generation. Introduced in NexT v6.0.0.\ncache:\n enable: true\n\n# Redefine custom file paths. Introduced in NexT v6.0.2. If commented, will be used default custom file paths.\n# For example, you want to put your custom styles file outside theme directory in root `source/_data`, set `styles: source/_data/styles.styl`\n#custom_file_path:\n # Default paths: layout/_custom/*\n #head: source/_data/head.swig\n #header: source/_data/header.swig\n #sidebar: source/_data/sidebar.swig\n\n # Default path: source/css/_variables/custom.styl\n #variables: source/_data/variables.styl\n # Default path: source/css/_mixins/custom.styl\n #mixins: source/_data/mixins.styl\n # Default path: source/css/_custom/custom.styl\n #styles: source/_data/styles.styl\n\n\n# ---------------------------------------------------------------\n# Site Information Settings\n# See: https://theme-next.org/docs/getting-started/\n# ---------------------------------------------------------------\n\nfavicon:\n small: /images/favicon-16x16-HandyOrg.png\n medium: /images/favicon-32x32-HandyOrg.png\n apple_touch_icon: /images/apple-touch-icon-HandyOrg.png\n safari_pinned_tab: /images/logo.svg\n #android_manifest: /images/manifest.json\n #ms_browserconfig: /images/browserconfig.xml\n\n# Set rss to false to disable feed link.\n# Leave rss as blank to use site's feed link, and install hexo-generator-feed: `npm install hexo-generator-feed --save`.\n# Set rss to specific value if you have burned your feed already.\nrss:\n\nfooter:\n # Specify the date when the site was setup. If not defined, current year will be used.\n #since: 2015\n\n # Icon between year and copyright info.\n icon:\n # Icon name in fontawesome, see: https://fontawesome.com/v4.7.0/icons/\n # `heart` is recommended with animation in red (#ff0000).\n name: HandyOrg\n # If you want to animate the icon, set it to true.\n animated: false\n # Change the color of icon, using Hex Code.\n color: "#808080"\n\n # If not defined, `author` from Hexo main config will be used.\n copyright:\n\n powered:\n # Hexo link (Powered by Hexo).\n enable: false\n # Version info of Hexo after Hexo link (vX.X.X).\n version: true\n\n theme:\n # Theme & scheme info link (Theme - NexT.scheme).\n enable: true\n # Version info of NexT after scheme info (vX.X.X).\n version: true\n\n # Beian icp information for Chinese users. In China, every legal website should have a beian icp in website footer.\n # http://www.miitbeian.gov.cn\n beian:\n enable: false\n icp:\n\n # Any custom text can be defined here.\n #custom_text: Hosted by <a href="https://pages.coding.me" class="theme-link" rel="noopener" target="_blank">Coding Pages</a>\n\n# Creative Commons 4.0 International License.\n# See: https://creativecommons.org/share-your-work/licensing-types-examples\n# Available values of license: by | by-nc | by-nc-nd | by-nc-sa | by-nd | by-sa | zero\n# You can set a language value if you prefer a translated version of CC license.\n# CC licenses are available in 39 languages, where you can find the specific and correct abbreviation you need.\n# Valid values of language: deed.zh, deed.fr, deed.de, etc.\ncreative_commons:\n license: by-nc-sa\n sidebar: false\n post: false\n language:\n\n# `Follow me on GitHub` banner in the top-right corner.\ngithub_banner:\n enable: true\n permalink: https://github.com/HandyOrg\n title: Follow us on GitHub\n\n\n# ---------------------------------------------------------------\n# SEO Settings\n# ---------------------------------------------------------------\n\n# Disable Baidu transformation on mobile devices.\ndisable_baidu_transformation: false\n\n# Set a canonical link tag in your hexo, you could use it for your SEO of blog.\n# See: https://support.google.com/webmasters/answer/139066\n# Tips: Before you open this tag, remember set up your URL in hexo _config.yml (e.g. url: http://yourdomain.com)\ncanonical: true\n\n# Change headers hierarchy on site-subtitle (will be main site description) and on all post / page titles for better SEO-optimization.\nseo: false\n\n# If true, will add site-subtitle to index page, added in main hexo config.\n# subtitle: Subtitle\nindex_with_subtitle: false\n\n# Automatically add external URL with BASE64 encrypt & decrypt.\nexturl: false\n\n# Google Webmaster tools verification.\n# See: https://www.google.com/webmasters\n#google_site_verification:\n\n# Bing Webmaster tools verification.\n# See: https://www.bing.com/webmaster\n#bing_site_verification:\n\n# Yandex Webmaster tools verification.\n# See: https://webmaster.yandex.ru\n#yandex_site_verification:\n\n# Baidu Webmaster tools verification.\n# See: https://ziyuan.baidu.com/site\n#baidu_site_verification:\n\n# Enable baidu push so that the blog will push the url to baidu automatically which is very helpful for SEO.\nbaidu_push: false\n\n\n# ---------------------------------------------------------------\n# Menu Settings\n# ---------------------------------------------------------------\n\n# When running the site in a subdirectory (e.g. domain.tld/blog), remove the leading slash from link value (/archives -> archives).\n# Usage: `Key: /link/ || icon`\n# Key is the name of menu item. If the translation for this item is available, the translated text will be loaded, otherwise the Key name will be used. Key is case-senstive.\n# Value before `||` delimeter is the target link.\n# Value after `||` delimeter is the name of FontAwesome icon. If icon (with or without delimeter) is not specified, question icon will be loaded.\n# External url should start with http:// or https://\nmenu:\n 主页: / || \n HandyControl - 3.0.0:\n default: /handycontrol/ ||\n 鸣谢: /tnx/ ||\n 快速开始: /quick_start/ ||\n 基础xaml定义: \n default: /basic_xaml/ ||\n 行为: /behaviors/ ||\n 画刷: /brushes/ ||\n 颜色: /colors/ ||\n 转换器: /converters/ ||\n 效果: /effects/ ||\n 字体大小: /fonts/ ||\n 几何形状: /geometries/ ||\n Path路径: /paths/ ||\n 尺寸: /sizes/ ||\n 附加属性:\n default: /attach/ ||\n BackgroundSwitchElement 可切换背景的元素: /backgroundSwitchElement/ ||\n BorderElement 具有边框的元素: /borderElement/ ||\n DataGridAttach DataGrid专用: /dataGridAttach/ ||\n DropDownElement 可下拉内容的元素: /dropDownElement/ ||\n EdgeElement 具有边界内容的元素: /edgeElement/ ||\n IconElement 具有图标的元素: /iconElement/ ||\n IconSwitchElement 可切换图标的元素: /iconSwitchElement/ ||\n ImageAttach Image专用: /imageAttach/ ||\n InfoElement 信息元素: /infoElement/ ||\n PanelElement 面板元素: /panelElement/ ||\n PasswordBoxAttach 密码框专用: /passwordBoxAttach/ ||\n RectangleAttach Rectangle专用: /rectangleAttach/ ||\n StatusSwitchElement 可切换状态的元素: /statusSwitchElement/ ||\n TextBlockAttach 文本块专用: /textBlockAttach/ ||\n TipElement 提示元素: /tipElement/ ||\n TitleElement 标题元素: /titleElement/ ||\n VisualElement 可视化元素: /visualElement/ ||\n WindowAttach 窗体专用: /windowAttach/ ||\n 原生控件:\n default: /native_controls/ ||\n Border 边框: /border/ ||\n Button 按钮: /button/ ||\n Calendar 日历: /calendar/ ||\n CheckBox 复选框: /checkBox/ ||\n ComboBox 组合框: /comboBox/ ||\n ContentControl 内容控件: /contentControl/ ||\n ContextMenu 上下文菜单: /contextMenu/ ||\n DataGrid 数据表格: /dataGrid/ ||\n DatePicker 日期选择器: /datePicker/ ||\n Expander 展开框: /expander/ ||\n FlowDocument 流文档: /flowDocument/ ||\n Frame 导航框架: /frame/ ||\n GroupBox 分组框: /groupBox/ ||\n Image 图片: /image/ ||\n Label 标签: /label/ ||\n ListBox 列表框: /listBox/ ||\n ListView 列表视图: /listView/ ||\n Menu 菜单: /menu/ ||\n PasswordBox 密码框: /passwordBox/ ||\n ProgressBar 进度条: /progressBar/ ||\n RadioButton 单选按钮: /radioButton/ ||\n RichTextBox 富文本框: /richTextBox/ ||\n ScrollViewer 滚动视图: /scrollViewer/ ||\n Separator 分隔符: /separator/ ||\n Slider 滑块: /slider/ ||\n StatusBar 状态栏: /statusBar/ ||\n TabControl 选项卡控件: /tabControl/ ||\n TextBlock 文本块: /textBlock/ ||\n TextBox 文本框: /textBox/ ||\n ToggleButton 切换按钮: /toggleButton/ ||\n ToolBar 工具条: /toolBar/ ||\n ToolTip 工具提示: /toolTip/ ||\n TreeView 树视图: /treeView/ ||\n Window 窗口: /window/ ||\n 扩展控件:\n default: /extend_controls/ ||\n AnimationPath 动画路径: /animationPath/ ||\n Badge 标记: /badge/ ||\n BlurWindow 背景模糊窗口: /blurWindow/ ||\n ButtonGroup 按钮组: /buttonGroup/ ||\n CalendarWithClock 带有时钟的日历: /calendarWithClock/ ||\n Card 卡片: /card/ ||\n Carousel 轮播: /carousel/ ||\n ChatBubble 对话气泡: /chatBubble/ ||\n CheckComboBox 复选组合框: /checkComboBox/ ||\n CirclePanel 圆形布局: /circlePanel/ ||\n CircleProgressBar 圆形进度条: /circleProgressBar/ ||\n Clock 时钟: /clock/ ||\n ColorPicker 颜色拾取器: /colorPicker/ ||\n ComboBox 组合框: /comboBox/ ||\n CompareSlider 对比滑块: /compareSlider/ ||\n ContextMenuButton 上下文菜单按钮: /contextMenuButton/ ||\n CoverFlow 封面流: /coverFlow/ ||\n CoverView 封面视图: /coverView/ ||\n DashedBorder 虚线边框: /dashedBorder/ ||\n DatePicker 日期选择器: /datePicker/ ||\n DateTimePicker 日期时间选择器: /dateTimePicker/ ||\n Dialog 对话框: /dialog/ ||\n Divider 分割线: /divider/ ||\n Drawer 抽屉: /drawer/ ||\n FlipClock 翻页时钟: /flipClock/ ||\n FloatingBlock 漂浮块: /floatingBlock/ ||\n GifImage Gif图片: /gifImage/ ||\n GlowWindow 辉光窗口: /glowWindow/ ||\n GotoTop 回到顶部: /gotoTop/ ||\n Gravatar 头像: /gravatar/ ||\n Grid 栅格: /grid/ ||\n Growl 信息通知: /growl/ ||\n HoneycombPanel 蜂窝布局: /honeycombPanel/ ||\n ImageBlock 图片块: /imageBlock/ ||\n ImageBrowser 图片浏览器: /imageBrowser/ ||\n ImageSelector 图片选择器: /imageSelector/ ||\n ImageViewer 图片视图: /imageViewer/ ||\n Loading 加载条: /loading/ ||\n Magnifier 放大镜: /magnifier/ ||\n MessageBox 消息对话框: /messageBox/ ||\n Notification 桌面通知: /notification/ ||\n NotifyIcon 托盘图标: /notifyIcon/ ||\n NumericUpDown 数值选择控件: /numericUpDown/ ||\n OutlineText 轮廓文本: /outlineText/ ||\n Pagination 页码条: /pagination/ ||\n PasswordBox 密码框: /passwordBox/ ||\n PinBox PIN码框: /pinBox/ ||\n PopTip 气泡提示: /popTip/ ||\n PopupWindow 弹出窗口: /popupWindow/ ||\n PreviewSlider 预览滑块: /previewSlider/ ||\n ProgressButton 进度按钮: /progressButton/ ||\n PropertyGrid 属性编辑器: /propertyGrid/ ||\n RangeSlider 范围滑块: /rangeSlider/ ||\n Rate 评分: /rate/ ||\n RelativePanel 相对布局: /relativePanel/ ||\n RunningBlock 滚动块: /runningBlock/ ||\n Screenshot 截图: /screenshot/ ||\n ScrollViewer 滚动视图: /scrollViewer/ ||\n SearchBar 搜索栏: /searchBar/ ||\n Shield 徽章: /shield/ ||\n SideMenu 侧边菜单: /sideMenu/ ||\n SimpleItemsControl 简单项目控件: /simpleItemsControl/ ||\n SimplePanel 简单面板: /simplePanel/ ||\n SimpleText 简单文本: /simpleText/ ||\n SplitButton 分割按钮: /splitButton/ ||\n Sprite 精灵: /sprite/ ||\n StepBar 步骤条: /stepBar/ ||\n TabControl 选项卡控件: /tabControl/ ||\n Tag 标签: /tag/ ||\n TextBox 文本框: /textBox/ ||\n TimeBar 时间条: /timeBar/ ||\n TimePicker 时间选择器: /timePicker/ ||\n ToggleBlock 切换块: /toggleBlock/ ||\n Transfer 穿梭框: /transfer/ ||\n TransitioningContentControl 内容过渡控件: /transitioningContentControl/ ||\n WaterfallPanel 瀑布流: /waterfallPanel/ ||\n Watermark 水印: /watermark/ ||\n WaveProgressBar 波形进度条: /waveProgressBar/ ||\n Window 窗口: /window/ ||\n 数据:\n default: /data/ ||\n GrowlInfo: /GrowlInfo/ ||\n InfoType: /InfoType/ ||\n 工具和扩展:\n default: /tools/ ||\n Effect 特效: /effect/ ||\n HatchBrushGenerator 阴影画笔生成器: /hatchBrushGenerator/ ||\n MorphingAnimation 变形动画: /morphingAnimation/ ||\n 国际化:\n default: /langs/ ||\n 破坏性更新:\n default: /breaking_changes/ ||\n\n# Enable / Disable menu icons / item badges.\nmenu_settings:\n icons: false\n badges: true\n\n\n# ---------------------------------------------------------------\n# Scheme Settings\n# ---------------------------------------------------------------\n\n# Schemes\n#scheme: Muse\n#scheme: Mist\n#scheme: Pisces\nscheme: Gemini\n\n\n# ---------------------------------------------------------------\n# Sidebar Settings\n# See: https://theme-next.org/docs/theme-settings/sidebar\n# ---------------------------------------------------------------\n\n# Posts / Categories / Tags in sidebar.\nsite_state: false\n\n# Social Links\n# Usage: `Key: permalink || icon`\n# Key is the link label showing to end users.\n# Value before `||` delimeter is the target permalink.\n# Value after `||` delimeter is the name of FontAwesome icon. If icon (with or without delimeter) is not specified, globe icon will be loaded.\nsocial:\n GitHub: https://github.com/HandyOrg || github\n E-Mail: mailto:handycontrol@qq.com || envelope\n QQ群1: //shang.qq.com/wpa/qunwpa?idkey=a571e5553c9d41e49c4f22f3a8b2865451497a795ff281fedf3285def247efc1 || qq\n QQ群2: //shang.qq.com/wpa/qunwpa?idkey=5c18622a0f6ee07a6f33afa8cdb85b1f72ea50e878271dfcec919c76b55afee7 || qq\n Nuget: https://www.nuget.org/packages/HandyControl || code\n Gitter: https://gitter.im/HandyControl/Lobby || commenting\n Wiki-en: https://github.com/ghost1372/HandyControl/wiki || book\n Wiki-fr: https://github.com/TheKeytrap/HandyControl/wiki || book\n\nsocial_icons:\n enable: true\n icons_only: false\n transition: false\n\n# Blog rolls\nlinks_icon: link\nlinks_title: Links\nlinks_layout: block\n#links_layout: inline\nlinks:\n #Title: http://example.com\n\n# Sidebar Avatar\navatar:\n # In theme directory (source/images): /images/avatar.gif\n # In site directory (source/uploads): /uploads/avatar.gif\n # You can also use other linking images.\n url: https://avatars2.githubusercontent.com/u/17383395?s=460&v=4\n # If true, the avatar would be dispalyed in circle.\n rounded: false\n # The value of opacity should be choose from 0 to 1 to set the opacity of the avatar.\n opacity: 1\n # If true, the avatar would be rotated with the cursor.\n rotated: false\n\n# Table Of Contents in the Sidebar\ntoc:\n enable: true\n # Automatically add list number to toc.\n number: true\n # If true, all words will placed on next lines if header width longer then sidebar width.\n wrap: false\n # If true, all level of TOC in a post will be displayed, rather than the activated part of it.\n expand_all: false\n # Maximum heading depth of generated toc. You can set it in one post through `toc_max_depth` in Front Matter.\n max_depth: 6\n\nsidebar:\n # Sidebar Position, available values: left | right (only for Pisces | Gemini).\n position: left\n #position: right\n\n # Manual define the sidebar width. If commented, will be default for:\n # Muse | Mist: 320\n # Pisces | Gemini: 240\n #width: 300\n\n # Sidebar Display, available values (only for Muse | Mist):\n # - post expand on posts automatically. Default.\n # - always expand for all pages automatically.\n # - hide expand only when click on the sidebar toggle icon.\n # - remove totally remove sidebar including sidebar toggle.\n display: post\n\n # Sidebar offset from top menubar in pixels (only for Pisces | Gemini).\n offset: 12\n # Enable sidebar on narrow view (only for Muse | Mist).\n onmobile: false\n # Click any blank part of the page to close sidebar (only for Muse | Mist).\n dimmer: false\n\nback2top:\n enable: true\n # Back to top in sidebar.\n sidebar: true\n # Scroll percent label in b2t button.\n scrollpercent: true\n\n# A button to open designated chat widget in sidebar.\n# Firstly, you need enable the chat service you want to activate its sidebar button.\nchat:\n enable: false\n #service: chatra\n #service: tidio\n icon: comment # icon in Font Awesome 4, set false to disable icon\n text: Chat # button text, change it as you wish\n\n\n# ---------------------------------------------------------------\n# Post Settings\n# See: https://theme-next.org/docs/theme-settings/posts\n# ---------------------------------------------------------------\n\n# Set the text alignment in the posts.\ntext_align:\n # Available values: start | end | left | right | center | justify | justify-all | match-parent\n desktop: justify\n mobile: justify\n\n# Automatically scroll page to section which is under <!-- more --> mark.\nscroll_to_more: true\n\n# Automatically saving scroll position on each post / page in cookies.\nsave_scroll: false\n\n# Automatically excerpt description in homepage as preamble text.\nexcerpt_description: true\n\n# Automatically Excerpt (Not recommend).\n# Use <!-- more --> in the post to control excerpt accurately.\nauto_excerpt:\n enable: false\n length: 150\n\n# Read more button\n# If true, the read more button would be displayed in excerpt section.\nread_more_btn: true\n\n# Post meta display settings\npost_meta:\n item_text: true\n created_at: true\n updated_at:\n enable: true\n another_day: true\n categories: true\n\n# Post wordcount display settings\n# Dependencies: https://github.com/theme-next/hexo-symbols-count-time\nsymbols_count_time:\n separated_meta: true\n item_text_post: true\n item_text_total: false\n awl: 4\n wpm: 275\n\ncodeblock:\n # Manual define the border radius in codeblock, leave it blank for the default value: 1\n border_radius:\n # Add copy button on codeblock\n copy_button:\n enable: false\n # Show text copy result\n show_result: false\n # Style: only 'flat' is currently available, leave it blank if you prefer default theme\n style:\n\n# Wechat Subscriber\nwechat_subscriber:\n enable: false\n #qcode: /path/to/your/wechatqcode e.g. /uploads/wechat-qcode.jpg\n #description: e.g. subscribe to my blog by scanning my public wechat account\n\n# Reward (Donate)\nreward_settings:\n # If true, reward would be displayed in every article by default.\n # You can show or hide reward in a specific article throuth `reward: true | false` in Front Matter.\n enable: false\n animation: false\n #comment: Donate comment here\n\nreward:\n #wechatpay: /images/wechatpay.png\n #alipay: /images/alipay.png\n #bitcoin: /images/bitcoin.png\n\n# Related popular posts\n# Dependencies: https://github.com/tea3/hexo-related-popular-posts\nrelated_posts:\n enable: false\n title: # custom header, leave empty to use the default one\n display_in_home: false\n params:\n maxCount: 5\n #PPMixingRate: 0.0\n #isDate: false\n #isImage: false\n #isExcerpt: false\n\n# Post edit\n# Dependencies: https://github.com/hexojs/hexo-deployer-git\npost_edit:\n enable: false\n url: https://github.com/user-name/repo-name/tree/branch-name/subdirectory-name # Link for view source.\n #url: https://github.com/user-name/repo-name/edit/branch-name/subdirectory-name # Link for fork & edit.\n\n\n# ---------------------------------------------------------------\n# Misc Theme Settings\n# ---------------------------------------------------------------\n\n# Reduce padding / margin indents on devices with narrow width.\nmobile_layout_economy: false\n\n# Android Chrome header panel color ($brand-bg / $headband-bg => $black-deep).\nandroid_chrome_color: "#f06632"\n\n# Hide sticky headers and color the menu bar on Safari (iOS / macOS).\nsafari_rainbow: false\n\n# Optimize the display of scrollbars on webkit based browsers.\ncustom_scrollbar: false\n\n# Custom Logo\n# Do not support Scheme Mist currently.\ncustom_logo:\n enable: false\n image: #/uploads/custom-logo.jpg\n\n# Code Highlight theme\n# Available values: normal | night | night eighties | night blue | night bright\n# https://github.com/chriskempson/tomorrow-theme\nhighlight_theme: normal\n\n# Enable "cheers" for archive page.\ncheers: true\n\n# TagCloud settings for tags page.\ntagcloud:\n # If true, font size, font color and amount of tags can be customized\n enable: false\n # All values below are same as default, change them by yourself\n min: 12 # min font size in px\n max: 30 # max font size in px\n start: "#ccc" # start color (hex, rgba, hsla or color keywords)\n end: "#111" # end color (hex, rgba, hsla or color keywords)\n amount: 200 # amount of tags, chage it if you have more than 200 tags\n\n\n# ---------------------------------------------------------------\n# Font Settings. Introduced in NexT v5.0.1.\n# Find fonts on Google Fonts (https://www.google.com/fonts)\n# All fonts set here will have the following styles:\n# light, light italic, normal, normal italic, bold, bold italic\n# Be aware that setting too much fonts will cause site running slowly\n# ---------------------------------------------------------------\n# To avoid space between header and sidebar in scheme Pisces / Gemini, Web Safe fonts are recommended for `global` (and `logo`):\n# Arial | Tahoma | Helvetica | Times New Roman | Courier New | Verdana | Georgia | Palatino | Garamond | Comic Sans MS | Trebuchet MS\n# ---------------------------------------------------------------\n\nfont:\n enable: false\n\n # Uri of fonts host, e.g. //fonts.googleapis.com (Default).\n host:\n\n # Font options:\n # `external: true` will load this font family from `host` above.\n # `family: Times New Roman`. Without any quotes.\n # `size: xx`. Use `px` as unit.\n\n # Global font settings used for all elements in <body>.\n global:\n external: true\n family: Lato\n size:\n\n # Font settings for Headlines (H1, H2, H3, H4, H5, H6).\n # Fallback to `global` font settings.\n headings:\n external: true\n family:\n size:\n\n # Font settings for posts.\n # Fallback to `global` font settings.\n posts:\n external: true\n family:\n\n # Font settings for Logo.\n # Fallback to `global` font settings.\n logo:\n external: true\n family:\n size:\n\n # Font settings for <code> and code blocks.\n codes:\n external: true\n family:\n size:\n\n\n# ---------------------------------------------------------------\n# Third Party Services Settings\n# See: https://theme-next.org/docs/third-party-services/\n# You may need to install dependencies or set CDN URLs in `vendors`\n# There are two different CDN providers by default:\n# - jsDelivr (cdn.jsdelivr.net), works everywhere even in China\n# - CDNJS (cdnjs.cloudflare.com), provided by cloudflare\n# ---------------------------------------------------------------\n\n# Math Equations Render Support\nmath:\n enable: false\n\n # Default (true) will load mathjax / katex script on demand.\n # That is it only render those page which has `mathjax: true` in Front Matter.\n # If you set it to false, it will load mathjax / katex srcipt EVERY PAGE.\n per_page: true\n\n engine: mathjax\n #engine: katex\n\n # hexo-rendering-pandoc (or hexo-renderer-kramed) needed to full MathJax support.\n mathjax:\n cdn: //cdn.jsdelivr.net/npm/mathjax@2/MathJax.js?config=TeX-AMS-MML_HTMLorMML\n #cdn: //cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js?config=TeX-MML-AM_CHTML\n\n # See: https://mhchem.github.io/MathJax-mhchem/\n #mhchem: //cdn.jsdelivr.net/npm/mathjax-mhchem@3\n #mhchem: //cdnjs.cloudflare.com/ajax/libs/mathjax-mhchem/3.3.0\n\n # hexo-renderer-markdown-it-plus (or hexo-renderer-markdown-it with markdown-it-katex plugin) needed to full Katex support.\n katex:\n cdn: //cdn.jsdelivr.net/npm/katex@0/dist/katex.min.css\n #cdn: //cdnjs.cloudflare.com/ajax/libs/KaTeX/0.7.1/katex.min.css\n\n copy_tex:\n # See: https://github.com/KaTeX/KaTeX/tree/master/contrib/copy-tex\n enable: false\n copy_tex_js: //cdn.jsdelivr.net/npm/katex@0/dist/contrib/copy-tex.min.js\n copy_tex_css: //cdn.jsdelivr.net/npm/katex@0/dist/contrib/copy-tex.min.css\n\n# Han Support\n# Dependencies: https://github.com/theme-next/theme-next-han\nhan: false\n\n# Pangu Support\n# Dependencies: https://github.com/theme-next/theme-next-pangu\n# For more information: https://github.com/vinta/pangu.js\npangu: false\n\n# Quicklink Support\n# Dependencies: https://github.com/theme-next/theme-next-quicklink\n# Visit https://github.com/GoogleChromeLabs/quicklink for details\nquicklink:\n enable: false\n\n # Quicklink (quicklink.umd.js script) is loaded on demand\n # Add `quicklink: true` in Front Matter of the page or post you need\n # Home page and archive page can be controlled through home and archive options below\n home: true\n archive: true\n\n # Default (true) will initialize quicklink after the load event fires\n delay: true\n # Custom a time in milliseconds by which the browser must execute prefetching\n timeout: 3000\n # Default (true) will enable fetch() or falls back to XHR\n priority: true\n\n # For more flexibility you can add some patterns (RegExp, Function, or Array) to ignores\n # See: https://github.com/GoogleChromeLabs/quicklink#custom-ignore-patterns\n # Leave ignores as empty if you don't understand what it means\n # Example:\n # ignores:\n # - /\/api\/?/\n # - uri => uri.includes('.xml')\n # - (uri, el) => el.hasAttribute('noopener')\n ignores:\n\n# Bookmark Support\n# Dependencies: https://github.com/theme-next/theme-next-bookmark\nbookmark:\n enable: false\n # If auto, save the reading position when closing the page or clicking the bookmark-icon.\n # If manual, only save it by clicking the bookmark-icon.\n save: auto\n\n# Reading progress bar\n# Dependencies: https://github.com/theme-next/theme-next-reading-progress\nreading_progress:\n enable: false\n color: "#37c6c0"\n height: 2px\n\n# Google Calendar\n# Share your recent schedule to others via calendar page.\n# API Documentation: https://developers.google.com/google-apps/calendar/v3/reference/events/list\n# To get api_key: https://console.developers.google.com\n# Create & manage a public Google calendar: https://support.google.com/calendar/answer/37083\ncalendar:\n enable: false\n calendar_id: <required> # Your Google account E-Mail\n api_key: <required>\n orderBy: startTime\n offsetMax: 24 # Time Range\n offsetMin: 4 # Time Range\n showDeleted: false\n singleEvents: true\n maxResults: 250\n\n\n# ---------------------------------------------------------------\n# Comments and Widgets\n# See: https://theme-next.org/docs/third-party-services/comments-and-widgets\n# ---------------------------------------------------------------\n\n# Disqus\ndisqus:\n enable: false\n shortname:\n count: true\n lazyload: false\n\n# DisqusJS\n# Alternative Disqus - Render comment component using Disqus API\n# Demo: https://suka.js.org/DisqusJS/\ndisqusjs:\n enable: false\n # API Endpoint of Disqus API (https://disqus.com/api/)\n # leave api empty if you are able to connect to Disqus API\n # otherwise you need a reverse proxy for Disqus API\n # For example:\n # api: https://disqus.skk.moe/disqus/\n api:\n apikey: # register new application from https://disqus.com/api/applications/\n shortname: # See: https://disqus.com/admin/settings/general/\n\n# Changyan\nchangyan:\n enable: false\n appid:\n appkey:\n\n# Valine\n# You can get your appid and appkey from https://leancloud.cn\n# More info available at https://valine.js.org\nvaline:\n enable: false # When enable is set to be true, leancloud_visitors is recommended to be closed for the re-initialization problem within different leancloud adk version.\n appid: # your leancloud application appid\n appkey: # your leancloud application appkey\n notify: false # mail notifier, See: https://github.com/xCss/Valine/wiki\n verify: false # Verification code\n placeholder: Just go go # comment box placeholder\n avatar: mm # gravatar style\n guest_info: nick,mail,link # custom comment header\n pageSize: 10 # pagination size\n language: # language, available values: en, zh-cn\n visitor: false # leancloud-counter-security is not supported for now. When visitor is set to be true, appid and appkey are recommended to be the same as leancloud_visitors' for counter compatibility. Article reading statistic https://valine.js.org/visitor.html\n comment_count: true # if false, comment count will only be displayed in post page, not in home page\n\n# LiveRe comments system\n# You can get your uid from https://livere.com/insight/myCode (General web site)\n#livere_uid: your uid\n\n# Gitment\n# Introduction: https://github.com/imsun/gitment\ngitment:\n enable: false\n mint: true # RECOMMEND, A mint on Gitment, to support count, language and proxy_gateway\n count: true # Show comments count in post meta area\n lazy: false # Comments lazy loading with a button\n cleanly: false # Hide 'Powered by ...' on footer, and more\n language: # Force language, or auto switch by theme\n github_user: # MUST HAVE, Your Github Username\n github_repo: # MUST HAVE, The name of the repo you use to store Gitment comments\n client_id: # MUST HAVE, Github client id for the Gitment\n client_secret: # EITHER this or proxy_gateway, Github access secret token for the Gitment\n proxy_gateway: # Address of api proxy, See: https://github.com/aimingoo/intersect\n redirect_protocol: # Protocol of redirect_uri with force_redirect_protocol when mint enabled\n\n# Gitalk\n# Demo: https://gitalk.github.io\ngitalk:\n enable: false\n github_id: # Github repo owner\n repo: # Repository name to store issues\n client_id: # Github Application Client ID\n client_secret: # Github Application Client Secret\n admin_user: # GitHub repo owner and collaborators, only these guys can initialize github issues\n distraction_free_mode: true # Facebook-like distraction free mode\n # Gitalk's display language depends on user's browser or system environment\n # If you want everyone visiting your site to see a uniform language, you can set a force language value\n # Available values: en, es-ES, fr, ru, zh-CN, zh-TW\n language:\n\n\n# ---------------------------------------------------------------\n# Content Sharing Services\n# See: https://theme-next.org/docs/third-party-services/content-sharing-services\n# ---------------------------------------------------------------\n\n# Baidu Share\n# Available values: button | slide\n# Warning: Baidu Share does not support https.\n#baidushare:\n## type: button\n\n# AddThis Share, See: https://www.addthis.com\n# Go to https://www.addthis.com/dashboard to customize your tools.\n#add_this_id:\n\n# Likely Share\n# See: https://ilyabirman.net/projects/likely/\n# Likely supports four looks, nine social networks, any button text\n# You are free to modify the text value and order of any network\nlikely:\n enable: false\n look: normal # available values: normal, light, small, big\n networks:\n twitter: Tweet\n facebook: Share\n linkedin: Link\n gplus: Plus\n vkontakte: Share\n odnoklassniki: Class\n telegram: Send\n whatsapp: Send\n pinterest: Pin\n\n# NeedMoreShare2\n# Dependencies: https://github.com/theme-next/theme-next-needmoreshare2\n# iconStyle: default | box\n# boxForm: horizontal | vertical\n# position: top / middle / bottom + Left / Center / Right\n# networks:\n# Weibo,Wechat,Douban,QQZone,Twitter,Facebook,Linkedin,Mailto,Reddit,Delicious,StumbleUpon,Pinterest,\n# GooglePlus,Tumblr,GoogleBookmarks,Newsvine,Evernote,Friendfeed,Vkontakte,Odnoklassniki,Mailru\nneedmoreshare2:\n enable: false\n postbottom:\n enable: false\n options:\n iconStyle: box\n boxForm: horizontal\n position: bottomCenter\n networks: Weibo,Wechat,Douban,QQZone,Twitter,Facebook\n float:\n enable: false\n options:\n iconStyle: box\n boxForm: horizontal\n position: middleRight\n networks: Weibo,Wechat,Douban,QQZone,Twitter,Facebook\n\n\n# ---------------------------------------------------------------\n# Statistics and Analytics\n# See: https://theme-next.org/docs/third-party-services/statistics-and-analytics\n# ---------------------------------------------------------------\n\n# Baidu Analytics ID\n#baidu_analytics:\n\n# Growingio Analytics ID\n# Copyright 2015-2018 GrowingIO, Inc. More info available at https://www.growingio.com\n#growingio_analytics: #your projectId\n\n# Google Analytics\n#google_analytics:\n# tracking_id:\n# localhost_ignored: true\n\n# CNZZ count\ncnzz_siteid: 1278600916\n\n# Application Insights\n# See: https://azure.microsoft.com/en-us/services/application-insights\n#application_insights:\n\n# Post widgets & FB/VK comments settings.\n# ---------------------------------------------------------------\n# Facebook SDK Support\nfacebook_sdk:\n enable: false\n app_id: #<app_id>\n fb_admin: #<user_id>\n like_button: #true\n webmaster: #true\n\n# Facebook comments plugin\n# This plugin depends on Facebook SDK.\n# If facebook_sdk.enable is false, Facebook comments plugin is unavailable.\nfacebook_comments_plugin:\n enable: false\n num_of_posts: 10 # min posts num is 1\n width: 100% # default width is 550px\n scheme: light # default scheme is light (light or dark)\n\n# VKontakte API Support\n# To get your AppID visit https://vk.com/editapp?act=create\nvkontakte_api:\n enable: false\n app_id: #<app_id>\n like: true\n comments: true\n num_of_posts: 10\n\n# Star rating support to each article.\n# To get your ID visit https://widgetpack.com\nrating:\n enable: false\n id: #<app_id>\n color: fc6423\n# ---------------------------------------------------------------\n\n# Show number of visitors to each article.\n# You can visit https://leancloud.cn to get AppID and AppKey.\nleancloud_visitors:\n enable: false\n app_id: #<app_id>\n app_key: #<app_key>\n # Dependencies: https://github.com/theme-next/hexo-leancloud-counter-security\n # If you don't care about security in leancloud counter and just want to use it directly\n # (without hexo-leancloud-counter-security plugin), set `security` to `false`.\n security: true\n betterPerformance: false\n\n# Another tool to show number of visitors to each article.\n# Visit https://console.firebase.google.com/u/0/ to get apiKey and projectId.\n# Visit https://firebase.google.com/docs/firestore/ to get more information about firestore.\nfirestore:\n enable: false\n collection: articles #required, a string collection name to access firestore database\n apiKey: #required\n projectId: #required\n bluebird: false #enable this if you want to include bluebird 3.5.1(core version) Promise polyfill\n\n# Show Views / Visitors of the website / page with busuanzi.\n# Get more information on http://ibruce.info/2015/04/04/busuanzi\nbusuanzi_count:\n enable: false\n total_visitors: true\n total_visitors_icon: user\n total_views: true\n total_views_icon: eye\n post_views: true\n post_views_icon: eye\n\n# Tencent analytics ID\n#tencent_analytics:\n\n# Tencent MTA ID\n#tencent_mta:\n\n\n# ---------------------------------------------------------------\n# Search Services\n# See: https://theme-next.org/docs/third-party-services/search-services\n# ---------------------------------------------------------------\n\n# Algolia Search\n# See: https://theme-next.org/docs/third-party-services/search-services#Algolia-Search\n# Dependencies: https://github.com/theme-next/theme-next-algolia-instant-search\nalgolia_search:\n enable: false\n hits:\n per_page: 10\n labels:\n input_placeholder: Search for Posts\n hits_empty: "We didn't find any results for the search: ${query}"\n hits_stats: "${hits} results found in ${time} ms"\n\n# Local search\n# Dependencies: https://github.com/theme-next/hexo-generator-searchdb\nlocal_search:\n enable: true\n # If auto, trigger search by changing input.\n # If manual, trigger search by pressing enter key or search button.\n trigger: auto\n # Show top n results per article, show all results by setting to -1\n top_n_per_article: -1\n # Unescape html strings to the readable one.\n unescape: false\n\n# Swiftype Search API Key\n#swiftype_key:\n\n\n# ---------------------------------------------------------------\n# Chat Services\n# See: https://theme-next.org/docs/third-party-services/chat-services\n# ---------------------------------------------------------------\n\n# Chatra Support\n# See: https://chatra.io\n# Dashboard: https://app.chatra.io/settings/general\nchatra:\n enable: false\n async: true\n id: # visit Dashboard to get your ChatraID\n #embed: # unfinished experimental feature for developers, See: https://chatra.io/help/api/#injectto\n\n# Tidio Support\n# See: https://www.tidiochat.com\n# Dashboard: https://www.tidiochat.com/panel/dashboard\ntidio:\n enable: false\n key: # Public Key, get it from Dashboard, See: https://www.tidiochat.com/panel/settings/developer\n\n\n# ---------------------------------------------------------------\n# Tags Settings\n# See: https://theme-next.org/docs/tag-plugins/\n# ---------------------------------------------------------------\n\n# Note tag (bs-callout)\nnote:\n # Note tag style values:\n # - simple bs-callout old alert style. Default.\n # - modern bs-callout new (v2-v3) alert style.\n # - flat flat callout style with background, like on Mozilla or StackOverflow.\n # - disabled disable all CSS styles import of note tag.\n style: simple\n icons: true\n border_radius: 3\n # Offset lighter of background in % for modern and flat styles (modern: -12 | 12; flat: -18 | 6).\n # Offset also applied to label tag variables. This option can work with disabled note tag.\n light_bg_offset: 0\n\n# Tabs tag\ntabs:\n enable: true\n transition:\n tabs: false\n labels: true\n border_radius: 0\n\n# PDF tag, requires two plugins: pdfObject and pdf.js\n# pdfObject will try to load pdf files natively, if failed, pdf.js will be used.\n# The following `cdn` setting is only for pdfObject, because cdn for pdf.js might be blocked by CORS policy.\n# So, you must install the dependency of pdf.js if you want to use pdf tag and make it available to all browsers.\n# See: https://github.com/theme-next/theme-next-pdf\npdf:\n enable: false\n # Default height\n height: 500px\n pdfobject:\n cdn: //cdn.jsdelivr.net/npm/pdfobject@2/pdfobject.min.js\n #cdn: //cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js\n\n# Mermaid tag\nmermaid:\n enable: false\n # Available themes: default | dark | forest | neutral\n theme: forest\n cdn: //cdn.jsdelivr.net/npm/mermaid@8/dist/mermaid.min.js\n #cdn: //cdnjs.cloudflare.com/ajax/libs/mermaid/8.0.0/mermaid.min.js\n\n\n# ---------------------------------------------------------------\n# Animation Settings\n# ---------------------------------------------------------------\n\n# Use velocity to animate everything.\nmotion:\n enable: false\n async: false\n transition:\n # Transition variants:\n # fadeIn | fadeOut | flipXIn | flipXOut | flipYIn | flipYOut | flipBounceXIn | flipBounceXOut | flipBounceYIn | flipBounceYOut\n # swoopIn | swoopOut | whirlIn | whirlOut | shrinkIn | shrinkOut | expandIn | expandOut\n # bounceIn | bounceOut | bounceUpIn | bounceUpOut | bounceDownIn | bounceDownOut | bounceLeftIn | bounceLeftOut | bounceRightIn | bounceRightOut\n # slideUpIn | slideUpOut | slideDownIn | slideDownOut | slideLeftIn | slideLeftOut | slideRightIn | slideRightOut\n # slideUpBigIn | slideUpBigOut | slideDownBigIn | slideDownBigOut | slideLeftBigIn | slideLeftBigOut | slideRightBigIn | slideRightBigOut\n # perspectiveUpIn | perspectiveUpOut | perspectiveDownIn | perspectiveDownOut | perspectiveLeftIn | perspectiveLeftOut | perspectiveRightIn | perspectiveRightOut\n post_block: fadeIn\n post_header: slideDownIn\n post_body: slideDownIn\n coll_header: slideLeftIn\n # Only for Pisces | Gemini.\n sidebar: slideUpIn\n\n# Fancybox. There is support for old version 2 and new version 3.\n# Choose only one variant, do not need to install both.\n# To install 2.x: https://github.com/theme-next/theme-next-fancybox\n# To install 3.x: https://github.com/theme-next/theme-next-fancybox3\nfancybox: false\n\n# Polyfill to remove click delays on browsers with touch UIs.\n# Dependencies: https://github.com/theme-next/theme-next-fastclick\nfastclick: false\n\n# Vanilla JavaScript plugin for lazyloading images.\n# Dependencies: https://github.com/theme-next/theme-next-jquery-lazyload\nlazyload: false\n\n# Progress bar in the top during page loading.\n# Dependencies: https://github.com/theme-next/theme-next-pace\npace: false\n# Themes list:\n# pace-theme-big-counter | pace-theme-bounce | pace-theme-barber-shop | pace-theme-center-atom\n# pace-theme-center-circle | pace-theme-center-radar | pace-theme-center-simple | pace-theme-corner-indicator\n# pace-theme-fill-left | pace-theme-flash | pace-theme-loading-bar | pace-theme-mac-osx | pace-theme-minimal\npace_theme: pace-theme-minimal\n\n# Canvas-nest\n# Dependencies: https://github.com/theme-next/theme-next-canvas-nest\ncanvas_nest:\n enable: false\n onmobile: true # display on mobile or not\n color: "0,0,255" # RGB values, use ',' to separate\n opacity: 0.5 # the opacity of line: 0~1\n zIndex: -1 # z-index property of the background\n count: 99 # the number of lines\n\n# JavaScript 3D library.\n# Dependencies: https://github.com/theme-next/theme-next-three\n# three_waves\nthree_waves: false\n# canvas_lines\ncanvas_lines: false\n# canvas_sphere\ncanvas_sphere: false\n\n# Canvas-ribbon\n# Dependencies: https://github.com/theme-next/theme-next-canvas-ribbon\n# size: The width of the ribbon.\n# alpha: The transparency of the ribbon.\n# zIndex: The display level of the ribbon.\ncanvas_ribbon:\n enable: false\n size: 300\n alpha: 0.6\n zIndex: -1\n\n\n#! ---------------------------------------------------------------\n#! DO NOT EDIT THE FOLLOWING SETTINGS\n#! UNLESS YOU KNOW WHAT YOU ARE DOING\n#! See: https://theme-next.org/docs/advanced-settings\n#! ---------------------------------------------------------------\n\n# Script Vendors. Set a CDN address for the vendor you want to customize.\n# For example\n# jquery: https://ajax.googleapis.com/ajax/libs/jquery/2.2.0/jquery.min.js\n# Be aware that you would better use the same version as internal ones to avoid potential problems.\n# Please use the https protocol of CDN files when you enable https on your site.\nvendors:\n # Internal path prefix. Please do not edit it.\n _internal: lib\n\n # Internal version: 2.1.3\n # Example:\n # jquery: //cdn.jsdelivr.net/npm/jquery@2/dist/jquery.min.js\n # jquery: //cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js\n jquery:\n\n # Internal version: 2.1.5 & 3.5.7\n # See: https://fancyapps.com/fancybox\n # Example:\n # fancybox: //cdn.jsdelivr.net/gh/fancyapps/fancybox@3/dist/jquery.fancybox.min.js\n # fancybox: //cdnjs.cloudflare.com/ajax/libs/fancybox/3.5.6/jquery.fancybox.min.js\n # fancybox_css: //cdn.jsdelivr.net/gh/fancyapps/fancybox@3/dist/jquery.fancybox.min.css\n # fancybox_css: //cdnjs.cloudflare.com/ajax/libs/fancybox/3.5.6/jquery.fancybox.min.css\n fancybox:\n fancybox_css:\n\n # Internal version: 1.0.6\n # See: https://github.com/ftlabs/fastclick\n # Example:\n # fastclick: //cdn.jsdelivr.net/npm/fastclick@1/lib/fastclick.min.js\n # fastclick: //cdnjs.cloudflare.com/ajax/libs/fastclick/1.0.6/fastclick.min.js\n fastclick:\n\n # Internal version: 1.9.7\n # See: https://github.com/tuupola/jquery_lazyload\n # Example:\n # lazyload: //cdn.jsdelivr.net/npm/jquery-lazyload@1/jquery.lazyload.min.js\n # lazyload: //cdnjs.cloudflare.com/ajax/libs/jquery_lazyload/1.9.7/jquery.lazyload.min.js\n lazyload:\n\n # Internal version: 1.2.1\n # See: http://velocityjs.org\n # Example:\n # velocity: //cdn.jsdelivr.net/npm/velocity-animate@1/velocity.min.js\n # velocity: //cdnjs.cloudflare.com/ajax/libs/velocity/1.2.1/velocity.min.js\n # velocity_ui: //cdn.jsdelivr.net/npm/velocity-animate@1/velocity.ui.min.js\n # velocity_ui: //cdnjs.cloudflare.com/ajax/libs/velocity/1.2.1/velocity.ui.min.js\n velocity:\n velocity_ui:\n\n # Internal version: 4.6.2\n # See: https://fontawesome.com\n # Example:\n # fontawesome: //cdn.jsdelivr.net/npm/font-awesome@4/css/font-awesome.min.css\n # fontawesome: //cdnjs.cloudflare.com/ajax/libs/font-awesome/4.6.2/css/font-awesome.min.css\n fontawesome:\n\n # Internal version: 2.10.4\n # See: https://www.algolia.com\n # Example:\n # algolia_instant_js: //cdn.jsdelivr.net/npm/instantsearch.js@2/dist/instantsearch.js\n # algolia_instant_css: //cdn.jsdelivr.net/npm/instantsearch.js@2/dist/instantsearch.min.css\n algolia_instant_js:\n algolia_instant_css:\n\n # Internal version: 1.0.2\n # See: https://github.com/HubSpot/pace\n # Example:\n # pace: //cdn.jsdelivr.net/npm/pace-js@1/pace.min.js\n # pace: //cdnjs.cloudflare.com/ajax/libs/pace/1.0.2/pace.min.js\n # pace_css: //cdn.jsdelivr.net/npm/pace-js@1/themes/blue/pace-theme-minimal.css\n # pace_css: //cdnjs.cloudflare.com/ajax/libs/pace/1.0.2/themes/blue/pace-theme-minimal.min.css\n pace:\n pace_css:\n\n # Internal version: 1.0.0\n # See: https://github.com/theme-next/theme-next-canvas-nest\n # Example:\n # canvas_nest: //cdn.jsdelivr.net/gh/theme-next/theme-next-canvas-nest@1/canvas-nest.min.js\n # canvas_nest_nomobile: //cdn.jsdelivr.net/gh/theme-next/theme-next-canvas-nest@1/canvas-nest-nomobile.min.js\n canvas_nest:\n canvas_nest_nomobile:\n\n # Internal version: 1.0.0\n # See: https://github.com/theme-next/theme-next-three\n # Example:\n # three: //cdn.jsdelivr.net/gh/theme-next/theme-next-three@1/three.min.js\n # three_waves: //cdn.jsdelivr.net/gh/theme-next/theme-next-three@1/three-waves.min.js\n # canvas_lines: //cdn.jsdelivr.net/gh/theme-next/theme-next-three@1/canvas_lines.min.js\n # canvas_sphere: //cdn.jsdelivr.net/gh/theme-next/theme-next-three@1/canvas_sphere.min.js\n three:\n three_waves:\n canvas_lines:\n canvas_sphere:\n\n # Internal version: 1.0.0\n # See: https://github.com/zproo/canvas-ribbon\n # Example:\n # canvas_ribbon: //cdn.jsdelivr.net/gh/theme-next/theme-next-canvas-ribbon@1/canvas-ribbon.js\n canvas_ribbon:\n\n # Internal version: 3.3.0\n # See: https://github.com/ethantw/Han\n # Example:\n # han: //cdn.jsdelivr.net/npm/han-css@3/dist/han.min.css\n # han: //cdnjs.cloudflare.com/ajax/libs/Han/3.3.0/han.min.css\n han:\n\n # Internal version: 4.0.7\n # See: https://github.com/vinta/pangu.js\n # Example:\n # pangu: //cdn.jsdelivr.net/npm/pangu@4/dist/browser/pangu.min.js\n # pangu: //cdnjs.cloudflare.com/ajax/libs/pangu/4.0.7/pangu.min.js\n pangu:\n\n # Internal version: 1.0.0\n # See: https://github.com/GoogleChromeLabs/quicklink\n # Example:\n # quicklink: //cdn.jsdelivr.net/npm/quicklink@1/dist/quicklink.umd.js\n quicklink:\n\n # Internal version: 1.0.0\n # See: https://github.com/revir/need-more-share2\n # Example:\n # needmoreshare2_js: //cdn.jsdelivr.net/gh/theme-next/theme-next-needmoreshare2@1/needsharebutton.min.js\n # needmoreshare2_css: //cdn.jsdelivr.net/gh/theme-next/theme-next-needmoreshare2@1/needsharebutton.min.css\n needmoreshare2_js:\n needmoreshare2_css:\n\n # Internal version: 1.0.0\n # See: https://github.com/theme-next/theme-next-bookmark\n # Example:\n # bookmark: //cdn.jsdelivr.net/gh/theme-next/theme-next-bookmark@1/bookmark.min.js\n bookmark:\n\n # Internal version: 1.1\n # See: https://github.com/theme-next/theme-next-reading-progress\n # Example:\n # reading_progress: //cdn.jsdelivr.net/gh/theme-next/theme-next-reading-progress@1/reading_progress.min.js\n reading_progress:\n\n # leancloud-storage\n # See: https://www.npmjs.com/package/leancloud-storage\n # Example:\n # leancloud: //cdn.jsdelivr.net/npm/leancloud-storage@3/dist/av-min.js\n leancloud:\n\n # valine\n # See: https://github.com/xCss/Valine\n # Example:\n # valine: //cdn.jsdelivr.net/npm/valine@1/dist/Valine.min.js\n # valine: //cdnjs.cloudflare.com/ajax/libs/valine/1.3.4/Valine.min.js\n valine:\n\n # gitalk & js-md5\n # See: https://github.com/gitalk/gitalk, https://github.com/emn178/js-md5\n # Example:\n # gitalk_js: //cdn.jsdelivr.net/npm/gitalk@1/dist/gitalk.min.js\n # gitalk_css: //cdn.jsdelivr.net/npm/gitalk@1/dist/gitalk.css\n # md5: //cdn.jsdelivr.net/npm/js-md5@0/src/md5.min.js\n gitalk_js:\n gitalk_css:\n md5:\n\n # likely\n # See: https://github.com/ilyabirman/Likely\n # Example:\n # likely_js: //cdn.jsdelivr.net/npm/ilyabirman-likely@2/release/likely.js\n # likely_css: //cdn.jsdelivr.net/npm/ilyabirman-likely@2/release/likely.css\n likely_js:\n likely_css:\n\n # DisqusJS\n # See: https://github.com/SukkaW/DisqusJS\n # Example:\n # disqusjs_js: //cdn.jsdelivr.net/npm/disqusjs@1/dist/disqus.js\n # disqusjs_css: //cdn.jsdelivr.net/npm/disqusjs@1/dist/disqusjs.css\n disqusjs_js:\n disqusjs_css:\n\n# Assets\ncss: css\njs: js\nimages: images\n
dataset_sample\yaml\HandyOrg_HandyControl\doc\themes\next\_config.yml
_config.yml
YAML
49,229
0.95
0.04246
0.488983
awesome-app
226
2024-01-07T09:00:49.429381
MIT
false
62009199fa3378b115107d308853802e
---\ntitle:\n archive: 归档\n category: 分类\n tag: 标签\n schedule: 日程表\nmenu:\n about: 关于\n home: 首页\n control: 控件\n style: 样式\n converter: 转换器\n attach_prop: 附加属性\n search: 搜索\nsidebar:\n overview: 站点概览\n toc: 文章目录\npost:\n posted: 发表于\n edited: 更新于\n created: 创建时间\n modified: 修改时间\n edit: 编辑\n in: 分类于\n more: 更多\n read_more: 阅读全文\n untitled: 未命名\n sticky: 置顶\n toc_empty: 此文章未包含目录\n views: 阅读次数\n comments_count: 评论数\n related_posts: 相关文章\n copy_button: 复制\n copy_success: 复制成功\n copy_failure: 复制失败\n copyright:\n author: 本文作者\n link: 本文链接\n license_title: 版权声明\n license_content: "本博客所有文章除特别声明外,均采用 %s 许可协议。转载请注明出处!"\npage:\n totally: 共有\n tags: 标签\nfooter:\n powered: "由 %s 强力驱动"\n theme: 主题\n total_views: 总访问量\n total_visitors: 总访客量\ncounter:\n tag_cloud:\n zero: 暂无标签\n one: 目前共计 1 个标签\n other: "目前共计 %d 个标签"\n categories:\n zero: 暂无分类\n one: 目前共计 1 个分类\n other: "目前共计 %d 个分类"\n archive_posts:\n zero: 暂无日志。\n one: 目前共计 1 篇日志。\n other: "目前共计 %d 篇日志。"\nstate:\n posts: 日志\n pages: 页面\n tags: 标签\n categories: 分类\nsearch:\n placeholder: 搜索...\ncheers:\n um: 嗯..\n ok: 还行\n nice: 不错\n good: 很好\n great: 非常好\n excellent: 太棒了\nkeep_on: 继续努力。\nsymbol:\n comma: ","\n period: "。"\n colon: ":"\nreward:\n donate: 打赏\n wechatpay: 微信支付\n alipay: 支付宝\n bitcoin: 比特币\ngitmentbutton: 显示 Gitment 评论\naccessibility:\n nav_toggle: 切换导航栏\n prev_page: 上一页\n next_page: 下一页\nsymbols_count_time:\n count: 本文字数\n count_total: 站点总字数\n time: 阅读时长\n time_total: 站点阅读时长\n time_minutes: 分钟\n
dataset_sample\yaml\HandyOrg_HandyControl\doc\themes\next\languages\zh-CN.yml
zh-CN.yml
YAML
2,059
0.7
0
0
vue-tools
989
2025-01-05T01:25:28.153824
GPL-3.0
false
d6f9d1682f1652116ae9acca80a76c1e
## Golden config for golangci-lint v1.49.0\n\n# This file contains only configs which differ from defaults.\n# All possible options can be found here https://github.com/golangci/golangci-lint/blob/master/.golangci.reference.yml\nlinters-settings:\n\n errcheck:\n # Report about not checking of errors in type assertions: `a := b.(MyStruct)`.\n # Such cases aren't reported by default.\n # Default: false\n check-type-assertions: true\n\n gocritic:\n # Settings passed to gocritic.\n # The settings key is the name of a supported gocritic checker.\n # The list of supported checkers can be find in https://go-critic.github.io/overview.\n settings:\n captLocal:\n # Whether to restrict checker to params only.\n # Default: true\n paramsOnly: false\n underef:\n # Whether to skip (*x).method() calls where x is a pointer receiver.\n # Default: true\n skipRecvDeref: false\n\n gomodguard:\n blocked:\n # List of blocked modules.\n # Default: []\n modules:\n - github.com/golang/protobuf:\n recommendations:\n - google.golang.org/protobuf\n reason: "see https://developers.google.com/protocol-buffers/docs/reference/go/faq#modules"\n - github.com/satori/go.uuid:\n recommendations:\n - github.com/google/uuid\n reason: "satori's package is not maintained"\n - github.com/gofrs/uuid:\n recommendations:\n - github.com/google/uuid\n reason: "see recommendation from dev-infra team: https://confluence.gtforge.com/x/gQI6Aw"\n\n govet:\n # Enable all analyzers.\n # Default: false\n enable-all: true\n # Disable analyzers by name.\n # Run `go tool vet help` to see all analyzers.\n # Default: []\n disable:\n - fieldalignment # too strict\n # Settings per analyzer.\n settings:\n shadow:\n # Whether to be strict about shadowing; can be noisy.\n # Default: false\n strict: true\n\n nakedret:\n # Make an issue if func has more lines of code than this setting, and it has naked returns.\n # Default: 30\n max-func-lines: 30\n\n rowserrcheck:\n # database/sql is always checked\n # Default: []\n packages:\n - github.com/jmoiron/sqlx\n\n tenv:\n # The option `all` will run against whole test files (`_test.go`) regardless of method/function signatures.\n # Otherwise, only methods that take `*testing.T`, `*testing.B`, and `testing.TB` as arguments are checked.\n # Default: false\n all: true\n\n goheader:\n # The template use for checking.\n # Default: ""\n template: |-\n Copyright 2023 Harness, Inc.\n\n Licensed under the Apache License, Version 2.0 (the "License");\n you may not use this file except in compliance with the License.\n You may obtain a copy of the License at\n \n http://www.apache.org/licenses/LICENSE-2.0\n\n Unless required by applicable law or agreed to in writing, software\n distributed under the License is distributed on an "AS IS" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n See the License for the specific language governing permissions and\n limitations under the License.\n # As alternative of directive 'template', you may put the path to file with the template source.\n # Useful if you need to load the template from a specific file.\n # Default: ""\n # template-path: /path/to/my/template.tmpl\n gci:\n # DEPRECATED: use `sections` and `prefix(github.com/org/project)` instead.\n # local-prefixes: github.com/harness/gitness\n # Section configuration to compare against.\n # Section names are case-insensitive and may contain parameters in ().\n # The default order of sections is `standard > default > custom > blank > dot`,\n # If `custom-order` is `true`, it follows the order of `sections` option.\n # Default: ["standard", "default"]\n sections:\n - standard # Standard section: captures all standard packages.\n - prefix(github.com/harness/gitness) # Custom section: groups all imports with the specified Prefix.\n - default # Default section: contains all imports that could not be matched to another section type.\n - blank # Blank section: contains all blank imports. This section is not present unless explicitly enabled.\n - dot # Dot section: contains all dot imports. This section is not present unless explicitly enabled.\n # Skip generated files.\n # Default: true\n skip-generated: false\n # Enable custom order of sections.\n # If `true`, make the section order the same as the order of `sections`.\n # Default: false\n custom-order: true\n\n tagliatelle:\n # Check the struck tag name case.\n case:\n rules:\n # Any struct tag type can be used.\n # Support string case: `camel`, `pascal`, `kebab`, `snake`, `goCamel`, `goPascal`, `goKebab`, `goSnake`, `upper`, `lower`\n json: snake\n db: snake\n yaml: snake\n xml: snake\n bson: snake\n avro: snake\n mapstructure: snake\n\n\nlinters:\n disable-all: true\n enable:\n ## enabled by default\n - errcheck # checking for unchecked errors, these unchecked errors can be critical bugs in some cases\n - gosimple # specializes in simplifying a code\n - govet # reports suspicious constructs, such as Printf calls whose arguments do not align with the format string\n - ineffassign # detects when assignments to existing variables are not used\n - staticcheck # is a go vet on steroids, applying a ton of static analysis checks\n - typecheck # like the front-end of a Go compiler, parses and type-checks Go code\n - unused # checks for unused constants, variables, functions and types\n\n ## disabled by default\n - asasalint # checks for pass []any as any in variadic func(...any)\n - asciicheck # checks that your code does not contain non-ASCII identifiers\n - bidichk # checks for dangerous unicode character sequences\n - bodyclose # checks whether HTTP response body is closed successfully\n - contextcheck # checks the function whether use a non-inherited context\n # - dupl # tool for code clone detection\n - durationcheck # checks for two durations multiplied together\n - errname # checks that sentinel errors are prefixed with the Err and error types are suffixed with the Error\n - errorlint # finds code that will cause problems with the error wrapping scheme introduced in Go 1.13\n - exhaustive # checks exhaustiveness of enum switch statements\n - copyloopvar # linter detects places where loop variables are copied\n - forbidigo # forbids identifiers\n - goconst # finds repeated strings that could be replaced by a constant\n - gocritic # provides diagnostics that check for bugs, performance and style issues\n - godot # checks if comments end in a period\n - goimports # in addition to fixing imports, goimports also formats your code in the same style as gofmt\n - gomoddirectives # manages the use of 'replace', 'retract', and 'excludes' directives in go.mod\n - gomodguard # allow and block lists linter for direct Go module dependencies. This is different from depguard where there are different block types for example version constraints and module recommendations\n - goprintffuncname # checks that printf-like functions are named with f at the end\n - gosec # inspects source code for security problems\n - lll # reports long lines\n - makezero # finds slice declarations with non-zero initial length\n - nakedret # finds naked returns in functions greater than a specified function length\n - nestif # reports deeply nested if statements\n - nilerr # finds the code that returns nil even if it checks that the error is not nil\n - nilnil # checks that there is no simultaneous return of nil error and an invalid value\n - noctx # finds sending http request without context.Context\n # - nonamedreturns # reports all named returns\n - nosprintfhostport # checks for misuse of Sprintf to construct a host with port in a URL\n - predeclared # finds code that shadows one of Go's predeclared identifiers\n - promlinter # checks Prometheus metrics naming via promlint\n - reassign # checks that package variables are not reassigned\n - revive # fast, configurable, extensible, flexible, and beautiful linter for Go, drop-in replacement of golint\n - rowserrcheck # checks whether Err of rows is checked successfully\n - sqlclosecheck # checks that sql.Rows and sql.Stmt are closed\n - stylecheck # is a replacement for golint\n - tagliatelle # checks the struct tags\n - tenv # detects using os.Setenv instead of t.Setenv since Go1.17\n - tparallel # detects inappropriate usage of t.Parallel() method in your Go test codes\n - unconvert # removes unnecessary type conversions\n - unparam # reports unused function parameters\n - usestdlibvars # detects the possibility to use variables/constants from the Go standard library\n - wastedassign # finds wasted assignment statements\n - whitespace # detects leading and trailing whitespace\n\n ## you may want to enable\n #- decorder # checks declaration order and count of types, constants, variables and functions\n #- exhaustruct # checks if all structure fields are initialized\n - gci # controls golang package import order and makes it always deterministic\n #- godox # detects FIXME, TODO and other comment keywords\n - goheader # checks is file header matches to pattern\n - misspell # [useless] finds commonly misspelled English words in comments\n\nrun:\n skip-dirs:\n - registry/app/api/controller/mocks\n\nissues:\n # Maximum count of issues with the same text.\n # Set to 0 to disable.\n # Default: 3\n max-same-issues: 10\n\n exclude-rules:\n - text: 'shadow: declaration of "(err|ctx|ok)" shadows declaration at'\n linters: [ govet ]\n - source: "^//\\s*go:generate\\s"\n linters: [ lll ]\n - text: 'local replacement are not allowed: github.com/harness/gitness'\n linters: [ gomoddirectives ]\n - text: 'replacement are not allowed: github.com/docker/docker'\n linters: [ gomoddirectives ]\n - source: "(noinspection|TODO)"\n linters: [ godot ]\n - source: "//noinspection"\n linters: [ gocritic ]\n - source: "^\\s+if _, ok := err\\.\\([^.]+\\.InternalError\\); ok {"\n linters: [ errorlint ]\n - path: "^cli/"\n linters: [forbidigo]\n #Registry Specific\n - path: "^registry/app/manifest/.*"\n linters: [ tagliatelle, staticcheck, revive ]\n - path: "^registry/app/dist_temp/.*"\n linters: [ errorlint ]\n - path: "^registry/app/driver/filesystem/.*"\n linters: [ gocritic ]\n - path: "^registry/app/driver/s3-aws/.*"\n linters: [ gocognit, gosec, nestif]\n - path: "^registry/app/remote/clients/registry/interceptor/interceptor.go"\n linters: [ goheader ]\n - path: "^registry/app/common/http/modifier/modifier.go"\n linters: [ goheader ]\n - path: "^registry/app/driver/fileinfo.go"\n linters: [ goheader ]\n - path: "^registry/app/driver/storagedriver.go"\n linters: [ goheader ]\n - path: "^registry/app/driver/walk.go"\n linters: [ goheader ]\n - path: "^registry/app/dist_temp/challenge/addr.go"\n linters: [ goheader ]\n - path: "^registry/app/dist_temp/challenge/authchallenge.go"\n linters: [ goheader ]\n - path: "^registry/app/dist_temp/challenge/authchallenge_test.go"\n linters: [ goheader ]\n - path: "^registry/app/dist_temp/requestutil/util.go"\n linters: [ goheader ]\n - path: "^registry/app/dist_temp/requestutil/util_test.go"\n linters: [ goheader ]\n - path: "^registry/app/manifest/descriptor.go"\n linters: [ goheader ]\n - path: "^registry/app/manifest/doc.go"\n linters: [ goheader ]\n - path: "^registry/app/manifest/errors.go"\n linters: [ goheader ]\n - path: "^registry/app/manifest/manifests.go"\n linters: [ goheader ]\n - path: "^registry/app/manifest/versioned.go"\n linters: [ goheader ]\n - path: "^registry/app/common/lib/authorizer.go"\n linters: [ goheader ]\n - path: "^registry/app/common/lib/link.go"\n linters: [ goheader ]\n - path: "^registry/app/common/http/tls.go"\n linters: [ goheader ]\n - path: "^registry/app/common/http/transport.go"\n linters: [ goheader ]\n - path: "^registry/app/common/http/transport_test.go"\n linters: [ goheader ]\n - path: "^registry/app/manifest/schema2/manifest.go"\n linters: [ goheader ]\n - path: "^registry/app/manifest/schema2/manifest_test.go"\n linters: [ goheader ]\n - path: "^registry/app/manifest/ocischema/index.go"\n linters: [ goheader ]\n - path: "^registry/app/manifest/ocischema/manifest.go"\n linters: [ goheader ]\n - path: "^registry/app/remote/clients/registry/auth/null/authorizer.go"\n linters: [ goheader ]\n - path: "^registry/app/remote/clients/registry/auth/basic/authorizer.go"\n linters: [ goheader ]\n - path: "^registry/app/remote/clients/registry/auth/basic/authorizer_test.go"\n linters: [ goheader ]\n - path: "^registry/app/common/lib/errors/const.go"\n linters: [ goheader ]\n - path: "^registry/app/common/lib/errors/errors.go"\n linters: [ goheader ]\n - path: "^registry/app/common/lib/errors/stack.go"\n linters: [ goheader ]\n - path: "^registry/app/common/lib/errors/stack_test.go"\n linters: [ goheader ]\n - path: "^registry/app/remote/clients/registry/auth/bearer/authorizer.go"\n linters: [ goheader ]\n - path: "^registry/app/remote/clients/registry/auth/bearer/cache.go"\n linters: [ goheader ]\n - path: "^registry/app/remote/clients/registry/auth/bearer/scope.go"\n linters: [ goheader ]\n - path: "^registry/app/manifest/manifestlist/manifestlist.go"\n linters: [ goheader ]\n - path: "^registry/app/manifest/manifestlist/manifestlist_test.go"\n linters: [ goheader ]\n - path: "^registry/app/driver/factory/factory.go"\n linters: [ goheader ]\n - path: "^registry/app/dist_temp/dcontext/context.go"\n linters: [ goheader ]\n - path: "^registry/app/dist_temp/dcontext/doc.go"\n linters: [ goheader ]\n - path: "^registry/app/dist_temp/dcontext/http.go"\n linters: [ goheader ]\n - path: "^registry/app/dist_temp/dcontext/logger.go"\n linters: [ goheader ]\n - path: "^registry/app/dist_temp/dcontext/trace.go"\n linters: [ goheader ]\n - path: "^registry/app/dist_temp/dcontext/util.go"\n linters: [ goheader ]\n - path: "^registry/app/dist_temp/dcontext/version.go"\n linters: [ goheader ]\n - path: "^registry/app/dist_temp/dcontext/http_test.go"\n linters: [ goheader ]\n - path: "^registry/app/dist_temp/dcontext/trace_test.go"\n linters: [ goheader ]\n - path: "^registry/app/dist_temp/dcontext/version_test.go"\n linters: [ goheader ]\n - path: "^registry/app/driver/base/base.go"\n linters: [ goheader ]\n - path: "^registry/app/driver/base/regulator.go"\n linters: [ goheader ]\n - path: "^registry/app/driver/base/regulator_test.go"\n linters: [ goheader ]\n - path: "^registry/app/storage/blobs.go"\n linters: [ goheader ]\n - path: "^registry/app/storage/blobwriter.go"\n linters: [ goheader ]\n - path: "^registry/app/storage/blobwriter_resumable.go"\n linters: [ goheader ]\n - path: "^registry/app/storage/errors.go"\n linters: [ goheader ]\n - path: "^registry/app/storage/filereader.go"\n linters: [ goheader ]\n - path: "^registry/app/storage/gcstoragelient.go"\n linters: [ goheader ]\n - path: "^registry/app/storage/io.go"\n linters: [ goheader ]\n - path: "^registry/app/storage/middleware.go"\n linters: [ goheader ]\n - path: "^registry/app/storage/ociblobstore.go"\n linters: [ goheader ]\n - path: "^registry/app/storage/paths.go"\n linters: [ goheader ]\n - path: "^registry/app/storage/storageservice.go"\n linters: [ goheader ]\n - path: "^registry/app/remote/clients/registry/client.go"\n linters: [ goheader ]\n - path: "^registry/app/remote/adapter/adapter.go"\n linters: [ goheader ]\n - path: "^registry/app/remote/clients/registry/auth/authorizer.go"\n linters: [ goheader ]\n - path: "^registry/app/driver/s3-aws/s3.go"\n linters: [ goheader ]\n - path: "^registry/app/driver/s3-aws/s3_v2_signer.go"\n linters: [ goheader ]\n - path: "^registry/app/driver/filesystem/driver.go"\n linters: [ goheader ]\n - path: "^registry/app/pkg/docker/app.go"\n linters: [ goheader ]\n - path: "^registry/app/pkg/docker/catalog.go"\n linters: [ goheader ]\n - path: "^registry/app/pkg/docker/compat.go"\n linters: [ goheader ]\n - path: "^registry/app/pkg/docker/context.go"\n linters: [ goheader ]\n - path: "^registry/app/pkg/docker/controller.go"\n linters: [ goheader ]\n - path: "^registry/app/pkg/docker/local.go"\n linters: [ goheader ]\n - path: "^registry/app/pkg/docker/manifest_service.go"\n linters: [ goheader ]\n - path: "^registry/app/pkg/docker/remote.go"\n linters: [ goheader ]\n - path: "^registry/app/remote/adapter/dockerhub/adapter.go"\n linters: [ goheader ]\n - path: "^registry/app/remote/adapter/awsecr/adapter.go"\n linters: [ goheader ]\n - path: "^registry/app/remote/adapter/maven/adapter.go"\n linters: [ goheader ]\n - path: "^registry/app/remote/adapter/awsecr/auth.go"\n linters: [ goheader ]\n - path: "^registry/app/remote/adapter/dockerhub/client.go"\n linters: [ goheader ]\n - path: "^registry/app/remote/adapter/dockerhub/consts.go"\n linters: [ goheader ]\n - path: "^registry/app/driver/testsuites/testsuites.go"\n linters: [ goheader ]\n - path: "^registry/app/dist_temp/errcode/errors.go"\n linters: [ goheader ]\n - path: "^registry/app/dist_temp/errcode/handler.go"\n linters: [ goheader ]\n - path: "^registry/app/dist_temp/errcode/register.go"\n linters: [ goheader ]\n - path: "^registry/app/remote/controller/proxy/controller.go"\n linters: [ goheader ]\n - path: "^registry/app/remote/controller/proxy/inflight.go"\n linters: [ goheader ]\n - path: "^registry/app/remote/controller/proxy/local.go"\n linters: [ goheader ]\n - path: "^registry/app/remote/controller/proxy/remote.go"\n linters: [ goheader ]\n - path: "^registry/app/remote/controller/proxy/inflight_test.go"\n linters: [ goheader ]\n - path: "^registry/app/remote/adapter/native/adapter.go"\n linters: [ goheader ]\n - path: "^registry/app/storage/blobStore.go"\n linters: [ gosec ]\n - path: "^registry/app/metadata/nuget/metadata.go"\n linters: [ tagliatelle, lll ]
dataset_sample\yaml\harness_harness\.golangci.yml
.golangci.yml
YAML
18,713
0.95
0.066351
0.156328
vue-tools
516
2024-09-09T23:36:08.857126
BSD-3-Clause
false
03f0300d6558ff6371e96d802e4f80e6
# Copyright (c) HashiCorp, Inc.\n# SPDX-License-Identifier: BUSL-1.1\n\nlinters:\n disable-all: true\n enable:\n - gofmt\n - govet\n - unconvert\n - staticcheck\n - ineffassign\n - unparam\n - forbidigo\n - gomodguard\n - depguard\n\nissues:\n # Disable the default exclude list so that all excludes are explicitly\n # defined in this file.\n exclude-use-default: false\n\n exclude-rules:\n # Temp Ignore SA9004: only the first constant in this group has an explicit type\n # https://staticcheck.io/docs/checks#SA9004\n - linters: [staticcheck]\n text: "SA9004:"\n\n - linters: [staticcheck]\n text: "SA1006:"\n\n - linters: [staticcheck]\n text: 'SA1019: "io/ioutil" has been deprecated since Go 1.16'\n\n # Allow usage of deprecated values.\n - linters: [ staticcheck ]\n text: 'SA1019:'\n path: "(agent/grpc-external|agent/grpc-internal)"\n\n # An argument that always receives the same value is often not a problem.\n - linters: [unparam]\n text: "always receives"\n\n - linters: [ unparam ]\n text: 'result \d+ \(bool\) is always false'\n\n # Often functions will implement an interface that returns an error without\n # needing to return an error. Sometimes the error return value is unnecessary\n # but a linter can not tell the difference.\n - linters: [unparam]\n text: 'result \d+ \(error\) is always nil'\n\n # Allow unused parameters to start with an underscore. Arguments with a name\n # of '_' are already ignored.\n # Ignoring longer names that start with underscore allow for better\n # self-documentation than a single underscore by itself. Underscore arguments\n # should generally only be used when a function is implementing an interface.\n - linters: [unparam]\n text: "`_[^`]*` is unused"\n\n # Temp ignore some common unused parameters so that unparam can be added\n # incrementally.\n - linters: [unparam]\n text: "`(t|resp|req|entMeta)` is unused"\n\n # Temp ignore everything in _ce(_test).go and _ent(_test).go. Many of these\n # could use underscore to ignore the unused arguments, but the "always returns"\n # issue will likely remain in CE, and will need to be excluded.\n - linters: [unparam]\n path: "(_ce.go|_ce_test.go|_ent.go|_ent_test.go)"\n\nlinters-settings:\n govet:\n enable-all: true\n disable:\n - fieldalignment\n - nilness\n - shadow\n - unusedwrite\n - printf\n gofmt:\n simplify: true\n forbidigo:\n # Forbid the following identifiers (list of regexp).\n # Format includes custom message based on https://github.com/ashanbrown/forbidigo/pull/11\n forbid:\n - '\bhtml\/template\b(# Use text/template instead)?'\n - '\bioutil\b(# Use io and os packages instead of ioutil)?'\n - '\brequire\.New\b(# Use package-level functions with explicit TestingT)?'\n - '\bassert\.New\b(# Use package-level functions with explicit TestingT)?'\n # Exclude godoc examples from forbidigo checks.\n # Default: true\n exclude_godoc_examples: false\n gomodguard:\n blocked:\n # List of blocked modules.\n modules:\n # Blocked module.\n - github.com/hashicorp/net-rpc-msgpackrpc:\n recommendations:\n - github.com/hashicorp/consul-net-rpc/net-rpc-msgpackrpc\n - github.com/hashicorp/go-msgpack:\n recommendations:\n - github.com/hashicorp/consul-net-rpc/go-msgpack\n - github.com/golang/protobuf:\n recommendations:\n - google.golang.org/protobuf\n\n depguard:\n rules:\n main:\n listMode: lax\n deny:\n - pkg: net/rpc\n desc: "only use forked copy in github.com/hashicorp/consul-net-rpc/net/rpc"\n - pkg: github.com/golang/protobuf\n desc: "only use google.golang.org/protobuf"\n\nrun:\n timeout: 10m\n concurrency: 4\n skip-dirs-use-default: false\n
dataset_sample\yaml\hashicorp_consul\.golangci.yml
.golangci.yml
YAML
3,870
0.95
0.016529
0.254717
node-utils
247
2025-04-02T21:12:05.593285
Apache-2.0
false
32e7417c0d197ca24e6ecab9a3d53058
# Copyright (c) HashiCorp, Inc.\n# SPDX-License-Identifier: BUSL-1.1\n\nrun:\n # Timeout for analysis.\n timeout: 10m\n\n # Modules download mode (do not modify go.mod)\n module-download-mode: readonly\n\n # Exclude test files\n tests: false\n\n # Skip ui and generated files\n issues:\n exclude-files:\n - ".*\\.generated\\.go$"\n - ".*bindata_assetfs\\.go$"\n skip-dirs:\n - ui\n\n# Output configuration options\noutput:\n formats:\n - format: colored-line-number\n path: stdout\n\n # print lines of code with issue, default is true\n print-issued-lines: true\n\n # print linter name in the end of issue text, default is true\n print-linter-name: true\n\n# all available settings of specific linters\nlinters-settings:\n errcheck:\n # report about not checking of errors in type assetions: `a := b.(MyStruct)`;\n # default is false: such cases aren't reported by default.\n check-type-assertions: false\n\n exclude-functions:\n - io.*\n - fmt.*\n\n # path to a file containing a list of functions to exclude from checking\n # see https://github.com/kisielk/errcheck#excluding-functions for details\n # exclude: /path/to/file.txt\n govet:\n # report about shadowed variables\n disable:\n - shadow\n gofmt:\n # simplify code: gofmt with `-s` option, true by default\n simplify: true\n gocritic:\n disabled-checks:\n - commentFormatting\n - deprecatedComment\n staticcheck:\n # I(jrasell) will work on enabling additional checks when possible.\n checks: ["ST1020", "ST1016"]\n\nissues:\n exclude:\n - ifElseChain\n - singleCaseSwitch\n - assignOp\n - unlambda\n\nlinters:\n disable-all: true\n enable:\n - goimports\n - gocritic\n - misspell\n - govet\n - ineffassign\n - unconvert\n - gofmt\n - gosimple\n - staticcheck\n - asasalint\n - asciicheck\n - bidichk\n - bodyclose\n - dogsled\n - durationcheck\n # - errchkjson (todo)\n # - errorlint (todo)\n - copyloopvar\n - usestdlibvars\n fast: false\n
dataset_sample\yaml\hashicorp_nomad\.golangci.yml
.golangci.yml
YAML
1,984
0.95
0.021739
0.25
node-utils
451
2024-01-26T01:07:13.985056
GPL-3.0
false
c66902150eb7dfb001260970f0be0093
# Copyright (c) HashiCorp, Inc.\n# SPDX-License-Identifier: BUSL-1.1\n\nself-hosted-runner:\n # Labels of self-hosted runner in array of string\n labels:\n - custom-windows-medium\n - windows-2019-16core\n - custom-linux-xxl-nomad-20.04\n - custom-linux-xl-nomad-22.04\n - custom-ubuntu-22.04-xl\n - custom-ubuntu-22.04-arm64-xl\n
dataset_sample\yaml\hashicorp_nomad\.github\actionlint.yml
actionlint.yml
YAML
338
0.8
0
0.272727
vue-tools
407
2023-10-30T06:53:22.233739
Apache-2.0
false
6aaeec94918c8e49d6e1415fa734142b
# Copyright (c) HashiCorp, Inc.\n# SPDX-License-Identifier: BUSL-1.1\n\nversion: 2\nupdates:\n - package-ecosystem: gomod\n directory: "/"\n schedule:\n interval: "weekly"\n day: "sunday"\n time: "09:00"\n labels:\n - "theme/dependencies"\n - package-ecosystem: gomod\n directory: "/api"\n schedule:\n interval: "weekly"\n day: "sunday"\n time: "09:00"\n labels:\n - "theme/dependencies"\n - "theme/api"\n - package-ecosystem: npm\n directory: "/ui"\n schedule:\n interval: "weekly"\n day: "sunday"\n time: "09:00"\n labels:\n - "theme/dependencies"\n - "theme/ui"\n - package-ecosystem: npm\n directory: "/website"\n schedule:\n interval: "weekly"\n day: "sunday"\n time: "09:00"\n assignees:\n - "@hashicorp/web-presence"\n labels:\n - "theme/dependencies"\n - "theme/website"\n
dataset_sample\yaml\hashicorp_nomad\.github\dependabot.yml
dependabot.yml
YAML
881
0.8
0
0.04878
awesome-app
598
2023-11-23T22:19:33.120230
Apache-2.0
false
c440a75eb22f07b587d56d3256390579
# Copyright (c) HashiCorp, Inc.\n# SPDX-License-Identifier: BUSL-1.1\n\npaths-ignore:\n - "website/content/*"\n
dataset_sample\yaml\hashicorp_nomad\.github\secret-scanning.yml
secret-scanning.yml
YAML
107
0.8
0
0.5
awesome-app
764
2023-10-16T17:50:54.182549
BSD-3-Clause
false
29dc769db82cf491bcfbfca56e3bbf0e
# Copyright (c) HashiCorp, Inc.\n# SPDX-License-Identifier: BUSL-1.1\n\nname: setup-js\ndescription: install node and yarn, and run yarn install\ninputs:\n node-version:\n description: 'node version'\n # https://github.com/ember-cli/ember-cli/blob/master/docs/node-support.md\n # package.json has ember-cli at version ~3.28.5 currently\n default: '20'\nruns:\n using: composite\n steps:\n - name: Install yarn\n run: |-\n # install yarn if not present\n yarn --version && exit\n # note: can't `npm install -g` on self-hosted runners\n npm install yarn --no-package-lock --no-save\n cd node_modules/.bin\n ./yarn --version\n echo "$PWD" >> "$GITHUB_PATH"\n working-directory: /tmp\n shell: bash\n # enforce node version (self-hosted default is not necessarily what we want)\n # after yarn, so we can use yarn for cache.\n - name: Setup node\n uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2\n with:\n node-version: ${{ inputs.node-version }}\n cache: yarn\n cache-dependency-path: ui/yarn.lock\n - name: Yarn install\n run: yarn install --frozen-lockfile\n working-directory: ui\n shell: bash\n
dataset_sample\yaml\hashicorp_nomad\.github\actions\setup-js\action.yml
action.yml
YAML
1,227
0.8
0.054054
0.222222
react-lib
788
2023-09-08T17:56:09.978743
BSD-3-Clause
false
e4147caec94270dbc5c8b519c950441f
# Copyright (c) HashiCorp, Inc.\n# SPDX-License-Identifier: BUSL-1.1\n\nblank_issues_enabled: false\ncontact_links:\n - name: Ask a Question\n url: https://discuss.hashicorp.com/c/nomad\n about: If you have a question, or are looking for advice, please post on our Discuss forum.\n - name: Nomad Learn Tracks\n url: https://learn.hashicorp.com/nomad\n about: Please check out our Learn Guides. These hands on guides deal with many of the tasks common to using Nomad.\n
dataset_sample\yaml\hashicorp_nomad\.github\ISSUE_TEMPLATE\config.yml
config.yml
YAML
471
0.8
0.090909
0.2
vue-tools
459
2024-11-24T11:55:41.995656
Apache-2.0
false
5321f8eb3ddb0b864849129ccff48e3b
# If the repository is public, be sure to change to GitHub hosted runners\nname: Lint GitHub Actions Workflows\non:\n push:\n paths:\n - '.github/workflows/**'\npermissions:\n contents: read\njobs:\n actionlint:\n runs-on: ubuntu-22.04\n steps:\n - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2\n - name: "Check workflow files"\n uses: docker://docker.mirror.hashicorp.services/rhysd/actionlint:latest\n
dataset_sample\yaml\hashicorp_nomad\.github\workflows\actionlint.yml
actionlint.yml
YAML
449
0.8
0
0.066667
vue-tools
490
2024-04-25T04:26:04.476010
Apache-2.0
false
396bdae322f05b4d33b7ded6f186b363
---\nname: Backport Assistant Runner\n\non:\n pull_request_target:\n types:\n - closed\n - labeled\n\njobs:\n backport:\n if: github.event.pull_request.merged\n runs-on: ubuntu-22.04\n container: hashicorpdev/backport-assistant:v0.5.7\n steps:\n - name: Backport changes to stable-website\n run: |\n backport-assistant backport -merge-method=squash\n env:\n BACKPORT_LABEL_REGEXP: "backport/(?P<target>website)"\n BACKPORT_TARGET_TEMPLATE: "stable-{{.target}}"\n # Enabling this option increased the number of backport failures.\n BACKPORT_MERGE_COMMIT: false\n GITHUB_TOKEN: ${{ secrets.ELEVATED_GITHUB_TOKEN }}\n - name: Backport changes to targeted release branch\n run: |\n backport-assistant backport -merge-method=squash\n env:\n BACKPORT_LABEL_REGEXP: "backport/(?P<target>\\d+\\.\\d+\\.[+\\w]+)"\n BACKPORT_TARGET_TEMPLATE: "release/{{.target}}"\n # Enabling this option increased the number of backport failures.\n BACKPORT_MERGE_COMMIT: false\n GITHUB_TOKEN: ${{ secrets.ELEVATED_GITHUB_TOKEN }}\n ENABLE_VERSION_MANIFESTS: true\n backport-ent:\n if: github.event.pull_request.merged && contains(join(github.event.pull_request.labels.*.name), 'backport/ent')\n runs-on: ubuntu-22.04\n steps:\n - name: Trigger backport for Enterprise\n uses: peter-evans/repository-dispatch@ff45666b9427631e3450c54a1bcbee4d9ff4d7c0 # v3.0.0\n with:\n token: ${{ secrets.ELEVATED_GITHUB_TOKEN }}\n repository: hashicorp/nomad-enterprise\n event-type: ent-backport\n client-payload: ${{ toJson(github.event) }}\n handle-failure:\n needs:\n - backport\n - backport-ent\n if: always() && (needs.backport.result == 'failure' || needs.backport-ent.result == 'failure')\n runs-on: ${{ endsWith(github.repository, '-enterprise') && fromJSON('["self-hosted", "ondemand", "linux", "type=m7a.2xlarge;m6a.2xlarge"]') || 'ubuntu-22.04' }}\n steps:\n - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2\n - name: Retrieve Vault-hosted Secrets\n if: endsWith(github.repository, '-enterprise')\n id: vault\n uses: hashicorp/vault-action@a1b77a09293a4366e48a5067a86692ac6e94fdc0 # v3.1.0\n with:\n url: ${{ vars.CI_VAULT_URL }}\n method: ${{ vars.CI_VAULT_METHOD }}\n path: ${{ vars.CI_VAULT_PATH }}\n jwtGithubAudience: ${{ vars.CI_VAULT_AUD }}\n secrets: |-\n kv/data/teams/nomad/slack-webhooks feed-nomad | SLACK_FEED_NOMAD ;\n - name: Send slack notification on failure\n uses: slackapi/slack-github-action@485a9d42d3a73031f12ec201c457e2162c45d02d # v2.0.0\n with:\n payload: |\n {\n "text": ":x::arrow_right_hook::nomad-sob: Backport run *FAILED*",\n "attachments": [\n {\n "color": "#C41E3A",\n "blocks": [\n {\n "type": "section",\n "fields": [\n {\n "type": "mrkdwn",\n "text": "*Pull Request:*\n<${{ github.event.pull_request.html_url}}|${{ github.repository }}#${{ github.event.pull_request.number}}>"\n },\n {\n "type": "mrkdwn",\n "text": "*From:*\n@${{ github.event.sender.login }}"\n },\n {\n "type": "mrkdwn",\n "text": "*Run:*\n<${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}|${{ github.run_id }}>"\n }\n ]\n }\n ]\n }\n ]\n }\n env:\n SLACK_WEBHOOK_URL: ${{ env.SLACK_FEED_NOMAD || secrets.BACKPORT_ASSISTANT_FAILURE_SLACK }}\n SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK\npermissions:\n contents: read\n id-token: write\n
dataset_sample\yaml\hashicorp_nomad\.github\workflows\backport.yml
backport.yml
YAML
4,117
0.8
0.049505
0.020202
react-lib
256
2024-09-15T05:09:22.875101
Apache-2.0
false
c8081207eb9a6d50e275368e3619f083
# The build workflow is responsible for building Nomad on all our supported\n# platforms. The compiled artifacts are then uploaded to GitHub. This upload\n# triggers the CRT prepare workflow, which downloads the artifacts and then\n# uploads them to our internal store.\n#\n# The workflow can be triggered in two ways:\n# - pushes to main or long-lived release line branches (eg. 1.10.x)\n# - dispatched via the release workflow (release.yml).\n#\n# The workflow should not be triggered from short-lived release branches;\n# branches that are cut from the long-lived ones in order to release Nomad. The\n# release workflow should be the only process responsible for triggering the\n# build workflow. This is because the release workflow performs a commit and\n# push of updated generated assets to the release branch. If this push triggers\n# a build, it will conflict with the release build process which shares the same\n# Git SHA and result in a last-write-wins to our internal store.\nname: build\n\non:\n push:\n branches:\n # 'main' is our forever branch where all changes get merged.\n # 'release/[0-9].[0-9]+.x*' matches our long-lived release lines such as\n # '1.10.x' and '1.10.x+ent' but excludes short-lived release branches such\n # as '1.10.0' and '1.10.0+ent'.\n - main\n - 'release/[0-9].[0-9]+.x*'\n workflow_dispatch:\n inputs:\n build-ref:\n description: 'The git ref to build from'\n type: string\n default: ''\n required: false\n make-prerelease:\n description: "Run prerelease to generate files"\n type: "boolean"\n required: false\n default: true\n\nenv:\n PKG_NAME: "nomad"\n GO_TAGS: "release"\n\njobs:\n get-go-version:\n runs-on: ubuntu-22.04\n outputs:\n go-version: ${{ steps.get-go-version.outputs.go-version }}\n steps:\n - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2\n with:\n ref: ${{ github.event.inputs.build-ref }}\n - name: Determine Go version\n id: get-go-version\n # We use .go-version as our source of truth for current Go\n # version, because "goenv" can react to it automatically.\n run: |-\n echo "Building with Go $(cat .go-version)"\n echo "go-version=$(cat .go-version)" >> "$GITHUB_OUTPUT"\n get-product-version:\n runs-on: ubuntu-22.04\n outputs:\n product-version: ${{ steps.get-product-version.outputs.product-version }}\n steps:\n - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2\n with:\n ref: ${{ github.event.inputs.build-ref }}\n - name: get product version\n id: get-product-version\n run: |-\n make version\n echo "product-version=$(make version)" >> "$GITHUB_OUTPUT"\n generate-metadata-file:\n needs: get-product-version\n runs-on: ubuntu-22.04\n outputs:\n filepath: ${{ steps.generate-metadata-file.outputs.filepath }}\n steps:\n - name: "Checkout directory"\n uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2\n with:\n ref: ${{ github.event.inputs.build-ref }}\n - name: Generate metadata file\n id: generate-metadata-file\n uses: hashicorp/actions-generate-metadata@fdbc8803a0e53bcbb912ddeee3808329033d6357 # v1.1.1\n with:\n version: ${{ needs.get-product-version.outputs.product-version }}\n product: ${{ env.PKG_NAME }}\n repositoryOwner: "hashicorp"\n sha: ${{ github.event.inputs.build-ref }}\n - uses: actions/upload-artifact@4cec3d8aa04e39d1a68397de0c4cd6fb9dce8ec1 # v4.6.1\n with:\n name: metadata.json\n path: ${{ steps.generate-metadata-file.outputs.filepath }}\n\n build-other:\n needs: [get-go-version, get-product-version]\n runs-on: custom-linux-xl-nomad-22.04\n strategy:\n matrix:\n goos: [windows]\n goarch: ["amd64"]\n fail-fast: true\n\n name: Go ${{ needs.get-go-version.outputs.go-version }} ${{ matrix.goos }} ${{ matrix.goarch }} build\n\n steps:\n - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2\n with:\n ref: ${{ github.event.inputs.build-ref }}\n - name: Setup go\n uses: actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34 # v5.3.0\n with:\n go-version: ${{ needs.get-go-version.outputs.go-version }}\n\n - name: Build dependencies\n run: make deps\n\n - name: Setup node and yarn\n uses: actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4.2.0\n with:\n node-version: "20"\n cache-dependency-path: "ui/yarn.lock"\n\n - name: Install Yarn\n run: |\n npm install -g yarn\n\n - name: Build prerelease\n run: make prerelease\n if: ${{ github.event_name != 'workflow_dispatch' || github.event.inputs.make-prerelease == 'true' }}\n\n - name: Build\n env:\n GOOS: ${{ matrix.goos }}\n GOARCH: ${{ matrix.goarch }}\n GO_TAGS: ${{ env.GO_TAGS }}\n CGO_ENABLED: 1\n run: |\n go clean -cache\n make pkg/${{ matrix.goos }}_${{ matrix.goarch }}.zip\n mv pkg/${{ matrix.goos }}_${{ matrix.goarch }}.zip ${{ env.PKG_NAME }}_${{ needs.get-product-version.outputs.product-version }}_${{ matrix.goos }}_${{ matrix.goarch }}.zip\n - uses: actions/upload-artifact@4cec3d8aa04e39d1a68397de0c4cd6fb9dce8ec1 # v4.6.1\n with:\n name: ${{ env.PKG_NAME }}_${{ needs.get-product-version.outputs.product-version }}_${{ matrix.goos }}_${{ matrix.goarch }}.zip\n path: ${{ env.PKG_NAME }}_${{ needs.get-product-version.outputs.product-version }}_${{ matrix.goos }}_${{ matrix.goarch }}.zip\n\n build-linux:\n needs: [get-go-version, get-product-version]\n runs-on: custom-linux-xl-nomad-22.04\n services:\n registry:\n image: registry:2\n ports:\n - 5000:5000\n strategy:\n matrix:\n goos: [linux]\n goarch: ["arm64", "amd64"]\n fail-fast: true\n\n name: Go ${{ needs.get-go-version.outputs.go-version }} ${{ matrix.goos }} ${{ matrix.goarch }} build\n\n steps:\n - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2\n with:\n ref: ${{ github.event.inputs.build-ref }}\n\n # even though we build inside the container, go tooling is still needed\n # for make prerelease\n - name: Setup go\n uses: actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34 # v5.3.0\n with:\n go-version: ${{ needs.get-go-version.outputs.go-version }}\n\n - name: Build dependencies\n run: make deps\n\n - name: Setup node and yarn\n uses: actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4.2.0\n with:\n node-version: "20"\n cache-dependency-path: "ui/yarn.lock"\n\n - name: Install Yarn\n run: |\n npm install -g yarn\n\n - name: Build prerelease\n run: make prerelease\n if: ${{ github.event_name != 'workflow_dispatch' || github.event.inputs.make-prerelease == 'true' }}\n\n - name: Build nomad-builder image\n uses: docker/build-push-action@471d1dc4e07e5cdedd4c2171150001c434f0b7a4 # v6\n env:\n DOCKER_BUILD_SUMMARY: false\n with:\n platforms: linux/amd64 # we only ever build amd64 images because we always run on amd64 runners and cross-compile inside the container if needed\n context: .github/nomad-builder/\n build-args: |\n GO_VERSION=${{ needs.get-go-version.outputs.go-version }}\n push: true\n tags: localhost:5000/nomad-builder:${{ github.sha }}\n\n - name: Build\n env:\n GOOS: ${{ matrix.goos }}\n GOARCH: ${{ matrix.goarch }}\n GO_TAGS: ${{ env.GO_TAGS }}\n CGO_ENABLED: 1\n run: |\n go clean -cache\n docker run --user "$(id --user):$(id --group)" --env HOME=/tmp -v "$(pwd)":/build localhost:5000/nomad-builder:${{ github.sha }} make pkg/${{ matrix.goos }}_${{ matrix.goarch }}.zip\n mv pkg/${{ matrix.goos }}_${{ matrix.goarch }}.zip ${{ env.PKG_NAME }}_${{ needs.get-product-version.outputs.product-version }}_${{ matrix.goos }}_${{ matrix.goarch }}.zip\n - uses: actions/upload-artifact@4cec3d8aa04e39d1a68397de0c4cd6fb9dce8ec1 # v4.6.1\n with:\n name: ${{ env.PKG_NAME }}_${{ needs.get-product-version.outputs.product-version }}_${{ matrix.goos }}_${{ matrix.goarch }}.zip\n path: ${{ env.PKG_NAME }}_${{ needs.get-product-version.outputs.product-version }}_${{ matrix.goos }}_${{ matrix.goarch }}.zip\n\n - name: Copy license file\n env:\n LICENSE_DIR: ".release/linux/package/usr/share/doc/${{ env.PKG_NAME }}"\n run: |\n mkdir -p "$LICENSE_DIR"\n cp LICENSE "$LICENSE_DIR/LICENSE.txt"\n\n - name: Package\n uses: hashicorp/actions-packaging-linux@8d55a640bb30b5508f16757ea908b274564792d4 # v1.8.0\n with:\n name: ${{ env.PKG_NAME }}\n description: "Nomad is an easy-to-use, flexible, and performant workload orchestrator that can deploy a mix of microservice, batch, containerized, and non-containerized applications."\n arch: ${{ matrix.goarch }}\n version: ${{ needs.get-product-version.outputs.product-version }}\n maintainer: "HashiCorp"\n homepage: "https://github.com/hashicorp/nomad"\n license: "BUSL-1.1"\n binary: "pkg/${{ matrix.goos }}_${{ matrix.goarch }}/${{ env.PKG_NAME }}"\n deb_depends: "openssl"\n rpm_depends: "openssl"\n deb_recommends: "dmidecode"\n rpm_recommends: "dmidecode"\n config_dir: ".release/linux/package/"\n preinstall: ".release/linux/preinst"\n postinstall: ".release/linux/postinst"\n postremove: ".release/linux/postrm"\n\n - name: Set Package Names\n run: |\n echo "RPM_PACKAGE=$(basename out/*.rpm)" >> "$GITHUB_ENV"\n echo "DEB_PACKAGE=$(basename out/*.deb)" >> "$GITHUB_ENV"\n\n - uses: actions/upload-artifact@4cec3d8aa04e39d1a68397de0c4cd6fb9dce8ec1 # v4.6.1\n with:\n name: ${{ env.RPM_PACKAGE }}\n path: out/${{ env.RPM_PACKAGE }}\n\n - uses: actions/upload-artifact@4cec3d8aa04e39d1a68397de0c4cd6fb9dce8ec1 # v4.6.1\n with:\n name: ${{ env.DEB_PACKAGE }}\n path: out/${{ env.DEB_PACKAGE }}\n\n build-darwin:\n needs: [get-go-version, get-product-version]\n runs-on: ${{ endsWith(github.repository, '-enterprise') && fromJSON('["self-hosted", "ondemand", "macos"]') || 'macos-latest' }}\n strategy:\n matrix:\n goos: [darwin]\n goarch: ["arm64", "amd64"]\n fail-fast: true\n\n name: Go ${{ needs.get-go-version.outputs.go-version }} ${{ matrix.goos }} ${{ matrix.goarch }} build\n\n steps:\n - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2\n with:\n ref: ${{ github.event.inputs.build-ref }}\n\n - name: Retrieve Vault-hosted Secrets\n if: endsWith(github.repository, '-enterprise')\n id: vault\n uses: hashicorp/vault-action@a1b77a09293a4366e48a5067a86692ac6e94fdc0 # v3.1.0\n with:\n url: ${{ vars.CI_VAULT_URL }}\n method: ${{ vars.CI_VAULT_METHOD }}\n path: ${{ vars.CI_VAULT_PATH }}\n jwtGithubAudience: ${{ vars.CI_VAULT_AUD }}\n secrets: |-\n kv/data/github/hashicorp/nomad-enterprise/gha ELEVATED_GITHUB_TOKEN ;\n - name: Git config token\n if: endsWith(github.repository, '-enterprise')\n run: git config --global url.'https://${{ env.ELEVATED_GITHUB_TOKEN }}@github.com'.insteadOf 'https://github.com'\n\n - name: Setup go\n uses: actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34 # v5.3.0\n with:\n go-version: ${{ needs.get-go-version.outputs.go-version }}\n\n - name: Build dependencies\n run: make deps\n\n - name: Setup node and yarn\n uses: actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4.2.0\n with:\n node-version: "20"\n cache-dependency-path: "ui/yarn.lock"\n\n - name: Install Yarn\n run: |\n npm install -g yarn\n\n - name: Build prerelease\n run: make prerelease\n if: ${{ github.event_name != 'workflow_dispatch' || github.event.inputs.make-prerelease == 'true' }}\n\n - name: Build\n env:\n GOOS: ${{ matrix.goos }}\n GOARCH: ${{ matrix.goarch }}\n GO_TAGS: "${{ env.GO_TAGS }} netcgo"\n CGO_ENABLED: 1\n run: |\n go clean -cache\n make pkg/${{ matrix.goos }}_${{ matrix.goarch }}.zip\n mv pkg/${{ matrix.goos }}_${{ matrix.goarch }}.zip ${{ env.PKG_NAME }}_${{ needs.get-product-version.outputs.product-version }}_${{ matrix.goos }}_${{ matrix.goarch }}.zip\n - uses: actions/upload-artifact@4cec3d8aa04e39d1a68397de0c4cd6fb9dce8ec1 # v4.6.1\n with:\n name: ${{ env.PKG_NAME }}_${{ needs.get-product-version.outputs.product-version }}_${{ matrix.goos }}_${{ matrix.goarch }}.zip\n path: ${{ env.PKG_NAME }}_${{ needs.get-product-version.outputs.product-version }}_${{ matrix.goos }}_${{ matrix.goarch }}.zip\n\n build-docker:\n name: Docker ${{ matrix.arch }} build\n needs:\n - get-product-version\n - build-linux\n runs-on: custom-linux-xl-nomad-22.04\n strategy:\n matrix:\n arch: ["arm64", "amd64"]\n env:\n version: ${{needs.get-product-version.outputs.product-version}}\n revision: ${{github.sha}}\n steps:\n - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2\n - name: Set revision\n if: "${{ github.event.inputs.build-ref != '' }}"\n run: |\n echo "revision=${{ github.event.inputs.build-ref }}" >> "$GITHUB_ENV"\n - name: Docker Build (Action)\n uses: hashicorp/actions-docker-build@11d43ef520c65f58683d048ce9b47d6617893c9a # v2.0.0\n with:\n smoke_test: |\n TEST_VERSION="$(docker run "${IMAGE_NAME}" version | awk '/Nomad v/{print $2}')"\n if [ "${TEST_VERSION}" != "v${version}" ]; then\n echo "Test FAILED"\n exit 1\n fi\n echo "Test PASSED"\n version: ${{env.version}}\n revision: ${{env.revision}}\n target: release\n arch: ${{matrix.arch}}\n tags: |\n docker.io/hashicorp/${{env.PKG_NAME}}:${{env.version}}\n dev_tags: |\n docker.io/hashicorppreview/${{ env.PKG_NAME }}:${{ env.version }}-dev\n docker.io/hashicorppreview/${{ env.PKG_NAME }}:${{ env.version }}-${{env.revision}}\n\n minimum-os-amd64:\n # test glibc 2.28 compatibility (RHEL 8.10)\n name: OS Compatibility (AMD64)\n needs:\n - get-go-version\n - get-product-version\n - build-linux\n strategy:\n fail-fast: false\n matrix:\n goos: [linux]\n goarch: [amd64]\n runs-on: ubuntu-22.04\n steps:\n - uses: actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34 # v5.3.0\n with:\n go-version: ${{needs.get-go-version.outputs.go-version}}\n - uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8\n with:\n name: ${{ env.PKG_NAME }}_${{ needs.get-product-version.outputs.product-version }}_${{ matrix.goos }}_${{ matrix.goarch }}.zip\n - name: Test binary\n env:\n artifact_name: ${{ env.PKG_NAME }}_${{ needs.get-product-version.outputs.product-version }}_${{ matrix.goos }}_${{ matrix.goarch }}.zip\n run: |\n echo "::group::Unpack and Prep"\n unzip "$artifact_name"\n echo "::group::Diagnostics"\n echo "CGO related build information:"\n go version -m ./nomad | grep CGO\n echo "GLIBC links:"\n go tool nm ./nomad | grep -i glibc | cut -d @ -f 2-3 | sort --version-sort | uniq\n echo "::group::Smoke test binary"\n docker run --rm -v "$PWD:/src" redhat/ubi8:8.10 /src/nomad version\n\n minimum-os-arm64:\n # test glibc 2.28 compatibility (RHEL 8.10)\n name: OS Compatibility (ARM64)\n if: github.repository != 'hashicorp/nomad-enterprise' # arm runners do not support private repositories\n needs:\n - get-go-version\n - get-product-version\n - build-linux\n strategy:\n fail-fast: false\n matrix:\n goos: [linux]\n goarch: [arm64]\n runs-on: ubuntu-22.04-arm\n steps:\n - uses: actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34 # v5.3.0\n with:\n go-version: ${{needs.get-go-version.outputs.go-version}}\n - uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8\n with:\n name: ${{ env.PKG_NAME }}_${{ needs.get-product-version.outputs.product-version }}_${{ matrix.goos }}_${{ matrix.goarch }}.zip\n - name: Test binary\n env:\n artifact_name: ${{ env.PKG_NAME }}_${{ needs.get-product-version.outputs.product-version }}_${{ matrix.goos }}_${{ matrix.goarch }}.zip\n run: |\n echo "::group::Unpack and Prep"\n unzip "$artifact_name"\n echo "::group::Diagnostics"\n echo "CGO related build information:"\n go version -m ./nomad | grep CGO\n echo "GLIBC links:"\n go tool nm ./nomad | grep -i glibc | cut -d @ -f 2-3 | sort --version-sort | uniq\n echo "::group::Smoke test binary"\n docker run --rm -v "$PWD:/src" redhat/ubi8:8.10 /src/nomad version\n\n handle-failure:\n needs:\n - get-go-version\n - get-product-version\n - generate-metadata-file\n - build-other\n - build-linux\n - build-darwin\n - build-docker\n - minimum-os-amd64\n - minimum-os-arm64\n if: always() && github.event_name == 'push' && contains(needs.*.result, 'failure')\n uses: ./.github/workflows/test-failure-notification.yml\n secrets: inherit\n with:\n actor: ${{ github.triggering_actor }}\n git-branch: ${{ github.ref_name }}\n workflow-run-id: ${{ github.run_id }}\n workflow-name: ${{ github.workflow }}\n\npermissions:\n contents: read\n id-token: write\n
dataset_sample\yaml\hashicorp_nomad\.github\workflows\build.yml
build.yml
YAML
18,190
0.95
0.030435
0.062053
awesome-app
73
2025-01-25T19:25:49.313304
GPL-3.0
false
d25831e6964c8888ff02107e14f2150b
name: Check Copywrite Headers\n\non:\n pull_request:\n push:\n branches:\n - 'main'\n - 'release/**'\n\njobs:\n copywrite:\n runs-on: ubuntu-22.04\n steps:\n - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2\n - uses: hashicorp/setup-copywrite@32638da2d4e81d56a0764aa1547882fc4d209636 # v1.1.3\n name: Setup Copywrite\n with:\n version: v0.16.4\n archive-checksum: c299f830e6eef7e126a3c6ef99ac6f43a3c132d830c769e0d36fa347fa1af254\n - name: Check Header Compliance\n run: make copywriteheaders\npermissions:\n contents: read\n
dataset_sample\yaml\hashicorp_nomad\.github\workflows\copywrite.yml
copywrite.yml
YAML
604
0.8
0
0
python-kit
815
2025-05-15T12:31:58.289273
GPL-3.0
false
7e0dae39c16c82b72ed3db179678044a
# Copyright (c) HashiCorp, Inc.\n# SPDX-License-Identifier: MPL-2.0\n\non:\n issues:\n types: [labeled, opened, closed, deleted, reopened]\n issue_comment:\n types: [created]\n workflow_dispatch:\n\nname: Jira Issue Sync\n\njobs:\n sync:\n runs-on: ubuntu-22.04\n name: Jira Issue sync\n steps:\n - name: Login\n uses: atlassian/gajira-login@45fd029b9f1d6d8926c6f04175aa80c0e42c9026 # v3.0.1\n env:\n JIRA_BASE_URL: ${{ secrets.JIRA_BASE_URL }}\n JIRA_USER_EMAIL: ${{ secrets.JIRA_USER_EMAIL }}\n JIRA_API_TOKEN: ${{ secrets.JIRA_API_TOKEN }}\n\n - name: Set ticket type\n id: set-ticket-type\n run: |\n echo "TYPE=GH Issue" >> "$GITHUB_OUTPUT"\n\n - name: Create ticket if an issue is labeled with hcc/jira\n if: github.event.action == 'labeled' && github.event.label.name == 'hcc/jira'\n uses: tomhjp/gh-action-jira-create@3ed1789cad3521292e591a7cfa703215ec1348bf # v0.2.1\n with:\n project: NMD\n issuetype: "${{ steps.set-ticket-type.outputs.TYPE }}"\n summary: "${{ github.event.repository.name }} [${{ steps.set-ticket-type.outputs.TYPE }} #${{ github.event.issue.number }}]: ${{ github.event.issue.title }}"\n description: "${{ github.event.issue.body || github.event.pull_request.body }}\n\n_Created in GitHub by ${{ github.actor }}._"\n # customfield_10089 is "Issue Link", customfield_10371 is "Source" (use JIRA API to retrieve), customerfield_10091 is "Team (R&D)\n extraFields: '{ "customfield_10089": "${{ github.event.issue.html_url || github.event.pull_request.html_url }}",\n "Team[Team]": "72e166fb-d26c-4a61-b0de-7a290d91708f",\n "labels": ["community", "GitHub"] }'\n env:\n JIRA_BASE_URL: ${{ secrets.JIRA_BASE_URL }}\n JIRA_USER_EMAIL: ${{ secrets.JIRA_USER_EMAIL }}\n JIRA_API_TOKEN: ${{ secrets.JIRA_API_TOKEN }}\n\n - name: Search\n if: github.event.action != 'opened'\n id: search\n uses: tomhjp/gh-action-jira-search@04700b457f317c3e341ce90da5a3ff4ce058f2fa # v0.2.2\n with:\n # cf[10089] is Issue Link (use JIRA API to retrieve)\n jql: 'cf[10089] = "${{ github.event.issue.html_url || github.event.pull_request.html_url }}"'\n\n - name: Sync comment\n if: github.event.action == 'created' && steps.search.outputs.issue\n uses: tomhjp/gh-action-jira-comment@6eb6b9ead70221916b6badd118c24535ed220bd9 # v0.2.0\n with:\n issue: ${{ steps.search.outputs.issue }}\n comment: "${{ github.actor }} ${{ github.event.review.state || 'commented' }}:\n\n${{ github.event.comment.body || github.event.review.body }}\n\n${{ github.event.comment.html_url || github.event.review.html_url }}"\n\n - name: Close ticket\n if: ( github.event.action == 'closed' || github.event.action == 'deleted' ) && steps.search.outputs.issue\n uses: atlassian/gajira-transition@38fc9cd61b03d6a53dd35fcccda172fe04b36de3 # v3.0.1\n with:\n issue: ${{ steps.search.outputs.issue }}\n transition: "Closed"\n\n - name: Reopen ticket\n if: github.event.action == 'reopened' && steps.search.outputs.issue\n uses: atlassian/gajira-transition@38fc9cd61b03d6a53dd35fcccda172fe04b36de3 # v3.0.1\n with:\n issue: ${{ steps.search.outputs.issue }}\n transition: "To Do"\n
dataset_sample\yaml\hashicorp_nomad\.github\workflows\jira-sync.yml
jira-sync.yml
YAML
3,419
0.8
0.081081
0.061538
node-utils
43
2023-09-20T07:44:33.793346
GPL-3.0
false
072b59b881d4f15b886e8480ee70b184
name: 'Lock Threads'\n\non:\n schedule:\n - cron: '50 1 * * *'\n\njobs:\n lock:\n runs-on: ubuntu-22.04\n steps:\n - uses: dessant/lock-threads@1bf7ec25051fe7c00bdd17e6a7cf3d7bfb7dc771 # v5.0.1\n with:\n github-token: ${{ github.token }}\n process-only: 'issues, prs'\n issue-comment: >\n I'm going to lock this issue because it has been closed for _120 days_ ⏳. This helps our maintainers find and focus on the active issues.\n\n If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.\n issue-inactive-days: '120'\n pr-comment: >\n I'm going to lock this pull request because it has been closed for _120 days_ ⏳. This helps our maintainers find and focus on the active contributions.\n\n If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.\n pr-inactive-days: '120'\n\npermissions:\n issues: write\n pull-requests: write\n
dataset_sample\yaml\hashicorp_nomad\.github\workflows\lock.yml
lock.yml
YAML
1,182
0.8
0.071429
0
node-utils
150
2023-07-29T07:08:40.725045
Apache-2.0
false
7a1283b3cfc9793b8b85e76d75beb426
name: Release\n\non:\n workflow_dispatch:\n inputs:\n version:\n description: 'The version being released'\n required: true\n type: string\n update-changelog:\n description: 'Update CHANGELOG'\n required: true\n type: boolean\n default: false\n notification-channel:\n description: 'Slack channel to use for notifications'\n required: false\n type: string\n default: 'CUYKT2A73'\n\nenv:\n GO_TAGS: "release"\n\njobs:\n prepare-release:\n runs-on: ${{ endsWith(github.repository, '-enterprise') && fromJSON('["self-hosted", "ondemand", "linux", "type=m7a.2xlarge;m6a.2xlarge"]') || 'ubuntu-22.04' }}\n outputs:\n build-ref: ${{ steps.commit-change-push.outputs.build-ref }}\n steps:\n - name: Prevent running from main\n if: ${{ github.ref_name == 'main' }}\n run: |-\n echo "::error::Workflow not allowed to run from ${{ github.ref_name }}"\n exit 1\n\n - name: Print release info\n run: |-\n echo "::notice::Release v${{ github.event.inputs.version }} from branch ${{ github.ref_name }}"\n\n - name: Install semver CLI\n run: |-\n local_bin="${HOME}/.local/bin"\n mkdir -p "${local_bin}"\n curl -L --output "${local_bin}/semver" \\n https://raw.githubusercontent.com/fsaintjacques/semver-tool/3.3.0/src/semver\n chmod +x "${local_bin}/semver"\n echo "${local_bin}" >> "$GITHUB_PATH"\n\n - name: Validate release version\n run: |-\n if [ "$(semver validate ${{ github.event.inputs.version }})" == "invalid" ]; then\n echo "::error::Version ${{ github.event.inputs.version }} is invalid"\n exit 1\n fi\n - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2\n with:\n persist-credentials: false\n - name: Retrieve Vault-hosted Secrets\n if: endsWith(github.repository, '-enterprise')\n id: vault\n uses: hashicorp/vault-action@a1b77a09293a4366e48a5067a86692ac6e94fdc0 # v3.1.0\n with:\n url: ${{ vars.CI_VAULT_URL }}\n method: ${{ vars.CI_VAULT_METHOD }}\n path: ${{ vars.CI_VAULT_PATH }}\n jwtGithubAudience: ${{ vars.CI_VAULT_AUD }}\n secrets: |-\n kv/data/github/hashicorp/nomad-enterprise/gha ELEVATED_GITHUB_TOKEN ;\n - name: Git config token\n run: git config --global url.'https://${{ env.ELEVATED_GITHUB_TOKEN || secrets.ELEVATED_GITHUB_TOKEN }}@github.com'.insteadOf 'https://github.com'\n - name: Git config user/name\n run: |-\n git config --global user.email "github-team-nomad-core@hashicorp.com"\n git config --global user.name "hc-github-team-nomad-core"\n\n - name: Determine Go version\n id: get-go-version\n # We use .go-version as our source of truth for current Go\n # version, because "goenv" can react to it automatically.\n run: |\n echo "Building with Go $(cat .go-version)"\n echo "go-version=$(cat .go-version)" >> "$GITHUB_OUTPUT"\n\n - name: Setup go\n uses: actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34 # v5.3.0\n with:\n go-version: ${{ steps.get-go-version.outputs.go-version }}\n\n - name: Setup node and yarn\n uses: actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4.2.0\n with:\n node-version: "20"\n cache-dependency-path: "ui/yarn.lock"\n\n - name: Install Yarn\n run: |\n npm install -g yarn\n\n - name: Install dependencies\n run: |\n make deps\n\n - name: Update notification channel\n id: notification-channel\n if: ${{ github.event.inputs.notification-channel != '' }}\n run: |\n sed -i.bak -e 's|\(notification_channel * = *"\)[^"]*|\1${{ github.event.inputs.notification-channel }}|g' .release/ci.hcl\n rm -rf .release/ci.hcl.bak\n git diff --color=always .release/ci.hcl\n\n - name: Update version file\n run: |\n NOMAD_VERSION="${{ github.event.inputs.version }}"\n NOMAD_MAIN_VERSION=$(semver get release "$NOMAD_VERSION")\n NOMAD_PRERELEASE_VERSION=$(semver get prerel "$NOMAD_VERSION")\n\n echo "updating version to ${NOMAD_MAIN_VERSION}-${NOMAD_PRERELEASE_VERSION}"\n\n sed -i.bak -e "s|\(Version * = *\"\)[^\"]*|\1${NOMAD_MAIN_VERSION}|g" version/version.go\n sed -i.bak -e "s|\(VersionPrerelease * = *\"\)[^\"]*|\1${NOMAD_PRERELEASE_VERSION}|g" version/version.go\n rm -rf version/version.go.bak\n git diff --color=always version/version.go\n\n - name: Update changelog\n if: ${{ github.event.inputs.update-changelog == 'true' }}\n run: |\n echo "::group::Fetch all git repo"\n git fetch --unshallow\n echo "::endgroup::"\n\n echo -e "## ${{ github.event.inputs.version }} ($(date '+%B %d, %Y'))\n$(make changelog)\n\n$(cat CHANGELOG.md)" > CHANGELOG.md\n git diff --color=always CHANGELOG.md\n\n - name: Generate static assets\n id: generate-static-assets\n run: |\n make prerelease\n\n - name: Commit and push changes\n id: commit-change-push\n run: |\n git add -A .\n find . -name '*.generated.go' -not -path './vendor/*' -exec git add -f '{}' \;\n if ! git diff-index --quiet HEAD --; then\n git commit --message "Generate files for ${{ github.event.inputs.version }} release"\n git push origin "$(git rev-parse --abbrev-ref HEAD)"\n echo "committing generated files"\n else\n echo "no files were updated"\n fi\n echo "build-ref=$(git rev-parse HEAD)" >> "$GITHUB_OUTPUT"\n\n - name: Invoke build workflow\n id: invoke-build\n env:\n GH_TOKEN: ${{ env.ELEVATED_GITHUB_TOKEN || secrets.ELEVATED_GITHUB_TOKEN }}\n run: |\n gh workflow run build.yml --ref ${{ github.ref_name }} --field build-ref=${{ steps.commit-change-push.outputs.build-ref }} --field make-prerelease=false\n\n - name: Revert notification channel\n if: ${{ github.event.inputs.notification-channel != '' }}\n run: |\n git reset ${{ github.sha }} -- .release/ci.hcl\n\n # git reset will place the original file content in the staging area\n # and leave the changes since then unstaged, so call git restore to\n # discard these changes and use --cached to display the diff in the\n # staging area.\n git restore .release/ci.hcl\n git diff --cached --color=always .release/ci.hcl\n\n - name: Update version file\n run: |\n # Only bump the Version value if this is not a pre-release.\n # For final releases we want `nomad -version` to display the next\n # version to indicate that the current release is done.\n if [ -z "$(semver get prerel ${{ github.event.inputs.version }})" ]; then\n next_version=$(semver bump patch ${{ github.event.inputs.version }})\n sed -i.bak -e "s|\(Version * = *\"\)[^\"]*|\1${next_version}|g" version/version.go\n fi\n # Set the VersionPrerelease variable back to dev.\n sed -i.bak -e "s|\(VersionPrerelease * = *\"\)[^\"]*|\1dev|g" version/version.go\n rm -rf version/version.go.bak\n git diff --color=always version/version.go\n\n - name: Update LAST_RELEASE\n run: |\n # LAST_RELEASE is used to generate the new CHANGELOG entries, so it's\n # only updated for final releases.\n if [ -z "$(semver get prerel ${{ github.event.inputs.version }})" ]; then\n sed -i.bak -re "s|^(LAST_RELEASE\s+\?=\s).*$|\1${{ github.event.inputs.version }}|g" GNUmakefile\n rm -fr GNUmakefile.bak\n git diff --color=always GNUmakefile\n else\n echo "Version ${{ github.event.inputs.version }} is a prerelease, skipping update of LAST_RELEASE"\n fi\n\n - name: Remove generated files\n run: |\n # These generated files are only needed when building the final\n # binary and should be not be present in the repository afterwards.\n find . -name '*.generated.go' -print0 | xargs -0 git rm\n git status\n\n - name: Commit post-release changes\n run: |\n # Display staged and unstaged diffs, skipping deleted files to avoid\n # cluttering the output with the generated files.\n git diff --diff-filter=d --color=always HEAD\n git add -A .\n if ! git diff-index --quiet HEAD --; then\n git commit --message 'Prepare for next release'\n git push origin "$(git rev-parse --abbrev-ref HEAD)"\n else\n echo "no files were updated"\n fi\n\npermissions:\n contents: read\n id-token: write\n
dataset_sample\yaml\hashicorp_nomad\.github\workflows\release.yml
release.yml
YAML
8,881
0.95
0.072727
0.082902
awesome-app
694
2025-06-21T14:59:43.147826
BSD-3-Clause
false
2a1ed0190e4232b2f22eb99d62420242
name: Security Scan\n\non:\n push:\n branches:\n - main\n - release/**\n paths-ignore:\n - 'README.md'\n - 'CHANGELOG.md'\n - '.changelog/**'\n - '.tours/**'\n - 'contributing/**'\n pull_request:\n branches:\n - main\n - release/**\n paths-ignore:\n - 'README.md'\n - 'CHANGELOG.md'\n - '.changelog/**'\n - '.tours/**'\n - 'contributing/**'\n\n# cancel existing runs of the same workflow on the same ref\nconcurrency:\n group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}\n cancel-in-progress: true\n\njobs:\n scan:\n runs-on: ${{ endsWith(github.repository, '-enterprise') && fromJSON('["self-hosted", "ondemand", "linux"]') || 'ubuntu-22.04' }}\n # The first check ensures this doesn't run on community-contributed PRs, who\n # won't have the permissions to run this job.\n if: ${{ (github.repository != 'hashicorp/nomad' || (github.event.pull_request.head.repo.full_name == github.event.pull_request.base.repo.full_name))\n && (github.actor != 'dependabot[bot]') && (github.actor != 'hc-github-team-nomad-core') }}\n\n steps:\n - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2\n - uses: actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34 # v5.3.0\n with:\n cache: ${{ contains(runner.name, 'Github Actions') }}\n go-version-file: .go-version\n cache-dependency-path: '**/go.sum'\n\n - name: Clone Security Scanner repo\n uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2\n with:\n repository: hashicorp/security-scanner\n token: ${{ secrets.PRODSEC_SCANNER_READ_ONLY }}\n path: security-scanner\n ref: main\n\n - name: Scan\n id: scan\n uses: ./security-scanner\n with:\n repository: "$PWD"\n env:\n SECURITY_SCANNER_CONFIG_FILE: .github/scan.hcl\n # See scan.hcl at repository .github location for config.\n\n - name: SARIF Output\n shell: bash\n run: |\n jq . < results.sarif\n\n - name: Upload SARIF file\n uses: github/codeql-action/upload-sarif@8fd294e26a0e458834582b0fe4988d79966c7c0a # codeql-bundle-v2.18.4\n with:\n sarif_file: results.sarif\n\n handle-failure:\n permissions:\n contents: read\n id-token: write\n needs:\n - scan\n if: always() && github.event_name == 'push' && contains(needs.*.result, 'failure')\n uses: ./.github/workflows/test-failure-notification.yml\n secrets: inherit\n with:\n actor: ${{ github.triggering_actor }}\n git-branch: ${{ github.ref_name }}\n workflow-run-id: ${{ github.run_id }}\n workflow-name: ${{ github.workflow }}\n
dataset_sample\yaml\hashicorp_nomad\.github\workflows\security-scan.yml
security-scan.yml
YAML
2,731
0.8
0.034884
0.051948
python-kit
204
2024-04-14T07:01:37.137005
GPL-3.0
false
8e750ac6a7aec75035160b66aaa7be74
name: Semgrep\n\non:\n pull_request: {}\n # Skipping push for now since it would run against the entire code base.\n # push:\n\njobs:\n semgrep-validate:\n name: Semgrep Validate\n if: (github.actor != 'dependabot[bot]')\n runs-on: ubuntu-22.04\n container:\n image: returntocorp/semgrep:1.107.0\n steps:\n - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2\n - run: semgrep --metrics=off --validate --config=.semgrep/\n\n semgrep:\n name: Semgrep Scan\n needs: [semgrep-validate]\n runs-on: ubuntu-22.04\n container:\n image: returntocorp/semgrep:1.107.0\n env:\n SEMGREP_SEND_METRICS: off\n # Skip any PR created by dependabot to avoid permission issues\n if: (github.actor != 'dependabot[bot]')\n steps:\n - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2\n - run: semgrep ci --config=.semgrep/\n\npermissions:\n contents: read\n
dataset_sample\yaml\hashicorp_nomad\.github\workflows\semgrep.yml
semgrep.yml
YAML
927
0.8
0.088235
0.1
react-lib
652
2024-10-08T02:43:35.921727
Apache-2.0
false
c6af84ce627532032f5fc151f4b89e96
# Copyright (c) HashiCorp, Inc.\n# SPDX-License-Identifier: BUSL-1.1\n\nrules:\n - id: "fmt_errorf_unformatted_use"\n patterns:\n - pattern: fmt.Errorf("...")\n message: "Use of fmt.Errorf without formatting. Please use errors.New"\n languages:\n - "go"\n severity: "WARNING"\n paths:\n include:\n - "./api/*"\n
dataset_sample\yaml\hashicorp_nomad\.semgrep\api_errorf.yml
api_errorf.yml
YAML
335
0.8
0
0.153846
vue-tools
29
2025-05-11T06:56:14.670991
GPL-3.0
false
893ceaab02591778973e85dbac0306ae
# Copyright (c) HashiCorp, Inc.\n# SPDX-License-Identifier: BUSL-1.1\n\nrules:\n # Check `release-note` in changelog entries.\n # https://semgrep.dev/s/DyRW\n - id: "changelog-release-note"\n patterns:\n - pattern: "```$CHANGE_TYPE"\n - pattern-not-inside: "```release-note"\n # This is probably the right way to write this rule, but semgrep doesn't\n # like it: https://github.com/returntocorp/semgrep/issues/4565\n # - pattern-not: "```release-note:..."\n message: "Missing `relelease-note`"\n languages:\n - "generic"\n severity: "ERROR"\n fix: "```release-note:$CHANGE_TYPE"\n paths:\n include:\n - ".changelog"\n
dataset_sample\yaml\hashicorp_nomad\.semgrep\changelog.yml
changelog.yml
YAML
659
0.8
0
0.35
awesome-app
406
2024-02-16T03:15:24.099545
BSD-3-Clause
false
48378d1081ed674c842973823b91f62c
# Copyright (c) HashiCorp, Inc.\n# SPDX-License-Identifier: BUSL-1.1\n\nrules:\n - id: "no-time-in-fsm"\n patterns:\n - pattern: time.Now()\n\n # Metric state is local to the server and therefore must use time.\n - pattern-not-inside: |\n defer metrics.MeasureSince(...)\n\n # Metric state is local to the server and therefore must use time.\n - pattern-not-inside: |\n defer metrics.MeasureSinceWithLabels(...)\n\n # The timetable's whole point is to roughly track timestamps for Raft log\n # indexes, so it must use time.\n - pattern-not-inside: |\n $N.timetable.Witness(...)\n message: |\n time.Now() should not be called from within the Server's FSM. Apply Raft\n log messages to the State Store must be deterministic so that each server\n contains exactly the same state. Since time drifts between nodes, it must\n be set before the Raft log message is applied so that all Raft members\n see the same timestamp.\n languages:\n - "go"\n severity: "WARNING"\n paths:\n include:\n - "nomad/fsm*"\n - "nomad/state/state_store*"\n exclude:\n - "*_test.go"\n
dataset_sample\yaml\hashicorp_nomad\.semgrep\fsm_time.yml
fsm_time.yml
YAML
1,166
0.8
0.028571
0.193548
node-utils
662
2024-11-21T22:22:15.273998
BSD-3-Clause
false
cc9da66f8f572c4b705fe9ee5fc99482
# Copyright (c) HashiCorp, Inc.\n# SPDX-License-Identifier: BUSL-1.1\n\nrules:\n - id: "http-endpoint-request-decode-error-code"\n patterns:\n - pattern: |\n if err := decodeBody(...); err != nil {\n return nil, CodedError(...)\n }\n - pattern-not-inside: |\n if err := decodeBody(...); err != nil {\n return nil, CodedError(400, ...)\n }\n - pattern-not-inside: |\n if err := decodeBody(...); err != nil {\n return nil, CodedError(http.StatusBadRequest, ...)\n }\n message: "HTTP endpoint request decode should return http.StatusBadRequest"\n languages:\n - "go"\n severity: "ERROR"\n paths:\n include:\n - "command/agent/*_endpoint.go"\n
dataset_sample\yaml\hashicorp_nomad\.semgrep\http_endpoint.yml
http_endpoint.yml
YAML
746
0.8
0.12
0.083333
react-lib
800
2024-06-21T02:08:09.463370
BSD-3-Clause
false
92197363ae037021bde6e9567f75ddb4
# Copyright (c) HashiCorp, Inc.\n# SPDX-License-Identifier: MPL-2.0\n\nrules:\n - id: "disallow-imports"\n patterns:\n - pattern: '"github.com/boltdb/bolt"'\n - pattern: '"github.com/pkg/errors"'\n - pattern: '"github.com/hashicorp/consul"'\n - pattern: '"github.com/hashicorp/consul/command/flags"'\n - pattern: '"github.com/hashicorp/consul/sdk"'\n - pattern: '"github.com/hashicorp/go-set"'\n - pattern: '"github.com/mitchellh/cli"'\n - pattern: '"golang.org/x/exp/slices"'\n - pattern: '"golang.org/x/exp/maps"'\n - pattern: '"golang.org/x/exp/constraints"'\n message: "Import of this package has been disallowed"\n languages:\n - "generic"\n severity: "ERROR"\n paths:\n include:\n - "*.go"\n
dataset_sample\yaml\hashicorp_nomad\.semgrep\imports.yml
imports.yml
YAML
757
0.95
0
0.090909
python-kit
975
2024-07-24T08:48:01.052689
Apache-2.0
false
40c59a6ce1410fa683c48e48b9f925c5
# Copyright (c) HashiCorp, Inc.\n# SPDX-License-Identifier: BUSL-1.1\n\nrules:\n - id: "mpl_busl"\n patterns:\n - pattern-either:\n - pattern-inside: |\n ...\n // SPDX-License-Identifier: MPL-2.0\n ...\n package $A\n ...\n import (\n ...\n ...\n )\n ...\n - pattern-inside: |\n ...\n // SPDX-License-Identifier: MPL-2.0\n ...\n package $A\n ...\n import ...\n ...\n - pattern: |\n "github.com/hashicorp/nomad/$...B"\n - metavariable-pattern:\n metavariable: $...B\n patterns:\n # List of MPL-2.0 packages that are allowed to be imported.\n # Command to find packages:\n # find . -name LICENSE ! -path '*node_modules*' | sort\n - pattern-not: "api..."\n - pattern-not: "demo..."\n - pattern-not: "drivers/shared..."\n - pattern-not: "helper/crypto..."\n - pattern-not: "helper/grpc-middleware..."\n - pattern-not: "helper/pluginutils/grpcutils..."\n - pattern-not: "helper/pluginutils/hclspecutils..."\n - pattern-not: "helper/pointer..."\n - pattern-not: "helper/testlog..."\n - pattern-not: "helper/uuid..."\n - pattern-not: "jobspec..."\n - pattern-not: "jobspec2..."\n - pattern-not: "plugins..."\n message: "BUSL package `github.com/hashicorp/nomad/$...B` imported in MPL package `$A`"\n languages:\n - "generic"\n paths:\n exclude:\n - "*_test.go"\n severity: "ERROR"\n
dataset_sample\yaml\hashicorp_nomad\.semgrep\mpl_busl.yml
mpl_busl.yml
YAML
1,678
0.95
0
0.132075
react-lib
792
2024-07-14T17:22:37.366887
GPL-3.0
false
a834aa056bbd7479dd0d6a0acbb958fe
# Copyright (c) HashiCorp, Inc.\n# SPDX-License-Identifier: BUSL-1.1\n\nrules:\n - id: "no-overriding-struct-globals"\n patterns:\n - pattern: |\n structs.$A = ...\n message: "Mutating global structs is never safe"\n languages:\n - "go"\n severity: "ERROR"\n fix: " "\n paths:\n # including tests!\n include: ["*"]\n
dataset_sample\yaml\hashicorp_nomad\.semgrep\protect_globals.yml
protect_globals.yml
YAML
348
0.8
0
0.2
node-utils
865
2025-04-07T00:08:07.019804
MIT
false
de51dc1237e270f04024e75c35f2d1cb
# Copyright (c) HashiCorp, Inc.\n# SPDX-License-Identifier: BUSL-1.1\n\nrules:\n # Check potentially RPC endpoints with missing authentication/authorization.\n - id: "rpc-potentially-unauthenticated"\n patterns:\n - pattern: |\n if done, err := $A.$B.forward($METHOD, ...); done {\n return err\n }\n # Pattern used by typical endpoints that take an auth token or workload\n # identity. Some of these endpoints have no context for Authenticate\n - pattern-not-inside: |\n authErr := $A.$B.Authenticate(...)\n ...\n if done, err := $A.$B.forward($METHOD, ...); done {\n return err\n }\n ...\n ... := $A.$B.ResolveACL(...)\n ...\n\n # Pattern used by endpoints that are used only for server-to-server. The\n # authentication and authorization check must be done together before\n # forwarding to prevent the risk of confused deputy when RPCs are\n # forwarded.\n - pattern-not-inside: |\n\n aclObj, err := $A.srv.AuthenticateServerOnly($A.ctx, args)\n ...\n if err != nil || !aclObj.AllowServerOp() {\n return structs.ErrPermissionDenied\n }\n\n if done, err := $A.srv.forward($METHOD, ...); done {\n return err\n }\n ...\n\n # Pattern used by endpoints that are used only for client-to-server.\n # Authorization can be done after forwarding, but must check the\n # AllowClientOp policy; the AllowClientOp condition is left open so that\n # additional ACL checks can be made (ex. to scope to a given node/pool).\n - pattern-not-inside: |\n aclObj, err := $A.$B.AuthenticateClientOnly($A.ctx, args)\n ...\n if done, err := $A.$B.forward($METHOD, ...); done {\n return err\n }\n ...\n if !aclObj.AllowClientOp() {\n return structs.ErrPermissionDenied\n }\n ...\n\n # Pattern used by endpoints that are used only for client-to-server.\n # Authorization can be done after forwarding, but must check the\n # AllowClientOp policy. This should not be added to any new endpoints.\n - pattern-not-inside: |\n aclObj, err := $A.$B.AuthenticateClientOnlyLegacy($A.ctx, args)\n ...\n if done, err := $A.$B.forward($METHOD, ...); done {\n return err\n }\n ...\n if !aclObj.AllowClientOp() {\n return structs.ErrPermissionDenied\n }\n ...\n\n # Pattern used by ACL endpoints that need to interact with the token\n # directly.\n - pattern-not-inside: |\n authErr := $A.$B.Authenticate($A.ctx, args)\n ...\n if done, err := $A.$B.forward($METHOD, ...); done {\n return err\n }\n ...\n ... := args.GetIdentity().GetACLToken()\n ...\n\n - metavariable-pattern:\n metavariable: $METHOD\n patterns:\n # Endpoints that are expected not to have authentication.\n - pattern-not: '"ACL.Bootstrap"'\n - pattern-not: '"ACL.GetClaimPolicies"'\n - pattern-not: '"ACL.ResolveToken"'\n - pattern-not: '"ACL.UpsertOneTimeToken"'\n - pattern-not: '"ACL.ExchangeOneTimeToken"'\n - pattern-not: '"ACL.WhoAmI"'\n - pattern-not: 'structs.ACLListAuthMethodsRPCMethod'\n - pattern-not: 'structs.ACLOIDCAuthURLRPCMethod'\n - pattern-not: 'structs.ACLOIDCCompleteAuthRPCMethod'\n - pattern-not: 'structs.ACLLoginRPCMethod'\n - pattern-not: '"Status.Leader"'\n - pattern-not: '"Status.Peers"'\n - pattern-not: '"Status.Version"'\n - pattern-not: '"Keyring.ListPublic"'\n - pattern-not: '"Keyring.GetConfig"'\n message: "RPC method $METHOD appears to be unauthenticated"\n languages:\n - "go"\n severity: "WARNING"\n paths:\n include:\n - "nomad/*_endpoint.go"\n\n\n # ACL objects should never be nil-checked in RPC handlers before checking\n # authorization, as nil ACLs are always programmer errors.\n - id: "rpc-authz-bypass"\n patterns:\n # Pattern that may accidentally bypass authorization checks.\n - pattern: |\n aclObj == nil\n\n message: "RPC method ACL check $ACL_CHECK appears to bypass authorization by first checking for nil ACLs"\n languages:\n - "go"\n severity: "WARNING"\n paths:\n include:\n - "nomad/*_endpoint.go"\n
dataset_sample\yaml\hashicorp_nomad\.semgrep\rpc_endpoint.yml
rpc_endpoint.yml
YAML
4,507
0.8
0.111111
0.191304
python-kit
615
2024-04-03T00:37:16.090081
MIT
false
b3c7b671aac6eb5c07a8cb45cfa344a7
# Copyright (c) HashiCorp, Inc.\n# SPDX-License-Identifier: BUSL-1.1\n\nrules:\n # Check for server RPC endpoints without metrics\n - id: "rpc-missing-metrics"\n patterns:\n - pattern: |\n authErr := $A.$B.Authenticate($A.ctx, args)\n - pattern-not-inside: |\n authErr := $A.$B.Authenticate($A.ctx, args)\n ...\n $T.srv.MeasureRPCRate(...)\n ...\n message: "RPC method appears to be missing metrics"\n languages:\n - "go"\n severity: "WARNING"\n paths:\n include:\n - "nomad/*_endpoint.go"\n
dataset_sample\yaml\hashicorp_nomad\.semgrep\rpc_metrics.yml
rpc_metrics.yml
YAML
559
0.8
0.047619
0.15
react-lib
791
2024-04-28T07:26:34.353752
BSD-3-Clause
false
f4e1edf8e51ae2fe8d5c21bc429a0f56
# Copyright (c) HashiCorp, Inc.\n# SPDX-License-Identifier: BUSL-1.1\n\nrules:\n - id: "time-after-leak"\n patterns:\n - pattern: |\n select {\n case <- time.After(...): ...\n }\n message: "Potential leak of time.Timer, consider using NewSafeTimer instead"\n languages:\n - "go"\n severity: "WARNING"\n paths:\n exclude:\n - "testutil/*"\n - "*testing.go"\n - "*_test.go"\n
dataset_sample\yaml\hashicorp_nomad\.semgrep\time_after.yml
time_after.yml
YAML
433
0.8
0
0.111111
python-kit
51
2025-03-28T14:17:50.929728
MIT
false
56df170cf7445cdc7b12638d6f75081f
# Copyright (c) HashiCorp, Inc.\n# SPDX-License-Identifier: BUSL-1.1\n\nrules:\n - id: ui-no-string-extensions\n patterns:\n - pattern: "$S.$FUNC()"\n - metavariable-pattern:\n metavariable: $FUNC\n pattern-either:\n - pattern: "w"\n - pattern: "loc"\n - pattern: "camelize"\n - pattern: "decamelize"\n - pattern: "dasherize"\n - pattern: "underscore"\n - pattern: "classify"\n - pattern: "capitalize"\n message: "Invalid call to string extension `$FUNC` in `$S.$FUNC()`"\n languages:\n - javascript\n severity: ERROR\n paths:\n include:\n - "ui/**/*.js"\n exclude:\n - "ui/node_modules"\n
dataset_sample\yaml\hashicorp_nomad\.semgrep\ui.yml
ui.yml
YAML
723
0.8
0
0.076923
python-kit
992
2023-10-20T18:27:23.173443
BSD-3-Clause
false
b2c27b00c4da60213dffbbb8c262f0c6
# Copyright (c) HashiCorp, Inc.\n# SPDX-License-Identifier: BUSL-1.1\n\nscrape_configs:\n - job_name: 'nomad_metrics'\n\n consul_sd_configs:\n - server: 'localhost:8500'\n services: ['nomad-client', 'nomad']\n\n relabel_configs:\n - source_labels: ['__meta_consul_tags']\n regex: '(.*)http(.*)'\n action: keep\n\n scrape_interval: 5s\n metrics_path: /v1/metrics\n params:\n format: ['prometheus']\n
dataset_sample\yaml\hashicorp_nomad\integrations\prometheus\prometheus.yml
prometheus.yml
YAML
421
0.8
0
0.133333
python-kit
423
2023-11-19T02:30:01.159736
BSD-3-Clause
false
3fdc097911c7d128d931c79fa11c6b22
# Copyright (c) HashiCorp, Inc.\n# SPDX-License-Identifier: BUSL-1.1\n\nversion: 1\nsnapshot:\n # Hide high-variability data from Percy snapshots; helps make sure that randomized data doesn't cause a visual diff.\n percy-css: | \n .topo-viz { \n display: none;\n }\n .related-evaluations path,\n .related-evaluations circle,\n .dashboard-metric {\n visibility: hidden;\n }
dataset_sample\yaml\hashicorp_nomad\ui\.percy.yml
.percy.yml
YAML
388
0.8
0
0.214286
node-utils
671
2025-03-11T16:49:05.644906
Apache-2.0
false
5b15e5910a88849cc1cade7831ebffe7
# Copyright (c) HashiCorp, Inc.\n# SPDX-License-Identifier: BUSL-1.1\n\nissues:\n # List of regexps of issue texts to exclude, empty list by default.\n # But independently from this option we use default exclude patterns,\n # it can be disabled by `exclude-use-default: false`. To list all\n # excluded by default patterns execute `golangci-lint run --help`\n\n exclude-rules:\n # Exclude gosimple bool check\n - linters:\n - gosimple\n text: "S(1002|1008|1021)"\n # Exclude failing staticchecks for now\n - linters:\n - staticcheck\n text: "SA(1006|1019|4006|4010|4017|5007|6005|9004):"\n # Exclude lll issues for long lines with go:generate\n - linters:\n - lll\n source: "^//go:generate "\n - linters:\n - errcheck\n path: ".*_test.go"\n\n # Maximum issues count per one linter. Set to 0 to disable. Default is 50.\n max-issues-per-linter: 0\n\n # Maximum count of issues with the same text. Set to 0 to disable. Default is 3.\n max-same-issues: 0\n\nlinters:\n disable-all: true\n enable:\n - errcheck\n - goimports\n - gosimple\n - govet\n - ineffassign\n - staticcheck\n - unconvert\n - unused\n fast: true\n\n# options for analysis running\nrun:\n # default concurrency is a available CPU number\n concurrency: 4\n\n # timeout for analysis, e.g. 30s, 5m, default is 1m\n timeout: 10m\n\n # exit code when at least one issue was found, default is 1\n issues-exit-code: 1\n\n # include test files or not, default is true\n tests: true\n\n # list of build tags, all linters use it. Default is empty list.\n #build-tags:\n # - mytag\n\n # which dirs to skip: issues from them won't be reported;\n # can use regexp here: generated.*, regexp is applied on full path;\n # default value is empty list, but default dirs are skipped independently\n # from this option's value (see skip-dirs-use-default).\n #skip-dirs:\n # - src/external_libs\n # - autogenerated_by_my_lib\n\n # default is true. Enables skipping of directories:\n # vendor$, third_party$, testdata$, examples$, Godeps$, builtin$\n skip-dirs-use-default: true\n\n # which files to skip: they will be analyzed, but issues from them\n # won't be reported. Default value is empty list, but there is\n # no need to include all autogenerated files, we confidently recognize\n # autogenerated files. If it's not please let us know.\n skip-files:\n - ".*\\.hcl2spec\\.go$"\n # - lib/bad.go\n\n # by default isn't set. If set we pass it to "go list -mod={option}". From "go help modules":\n # If invoked with -mod=readonly, the go command is disallowed from the implicit\n # automatic updating of go.mod described above. Instead, it fails when any changes\n # to go.mod are needed. This setting is most useful to check that go.mod does\n # not need updates, such as in a continuous integration and testing system.\n # If invoked with -mod=vendor, the go command assumes that the vendor\n # directory holds the correct copies of dependencies and ignores\n # the dependency descriptions in go.mod.\n modules-download-mode: readonly\n\n# output configuration options\noutput:\n # colored-line-number|line-number|json|tab|checkstyle|code-climate, default is "colored-line-number"\n format: colored-line-number\n\n # print lines of code with issue, default is true\n print-issued-lines: true\n\n # print linter name in the end of issue text, default is true\n print-linter-name: true\n\n # make issues output unique by line, default is true\n uniq-by-line: true\n\n\n# all available settings of specific linters\nlinters-settings:\n errcheck:\n # report about not checking of errors in type assetions: `a := b.(MyStruct)`;\n # default is false: such cases aren't reported by default.\n check-type-assertions: false\n\n # report about assignment of errors to blank identifier: `num, _ := strconv.Atoi(numStr)`;\n # default is false: such cases aren't reported by default.\n check-blank: false\n\n # [deprecated] comma-separated list of pairs of the form pkg:regex\n # the regex is used to ignore names within pkg. (default "fmt:.*").\n # see https://github.com/kisielk/errcheck#the-deprecated-method for details\n ignore: fmt:.*,io/ioutil:^Read.*,io:Close\n\n # path to a file containing a list of functions to exclude from checking\n # see https://github.com/kisielk/errcheck#excluding-functions for details\n #exclude: /path/to/file.txt\n
dataset_sample\yaml\hashicorp_packer\.golangci.yml
.golangci.yml
YAML
4,357
0.95
0.047244
0.548077
react-lib
11
2025-06-27T12:23:15.683654
GPL-3.0
false
11ebae86ad13169a65c584600e589dc3
version: 2\nupdates:\n- package-ecosystem: gomod\n directory: /\n schedule:\n interval: daily\n allow:\n - dependency-name: "github.com/hashicorp/packer-plugin-sdk"\n - dependency-name: "github.com/hashicorp/hcp-sdk-go"\n
dataset_sample\yaml\hashicorp_packer\.github\dependabot.yml
dependabot.yml
YAML
224
0.7
0
0
vue-tools
667
2023-07-21T02:37:17.401873
Apache-2.0
false
cc5dc0922d8a01570c33f340f46588ad
# Copyright (c) HashiCorp, Inc.\n# SPDX-License-Identifier: BUSL-1.1\n\nbug:\n - 'panic:'\ncrash:\n - 'panic:'\n\n
dataset_sample\yaml\hashicorp_packer\.github\labeler-issue-triage.yml
labeler-issue-triage.yml
YAML
108
0.8
0
0.333333
python-kit
740
2024-10-07T01:47:14.399682
Apache-2.0
false
9bb11e1c5033f661faa89bac1ae8fe0d
# Copyright (c) HashiCorp, Inc.\n# SPDX-License-Identifier: BUSL-1.1\n\nblank_issues_enabled: false\ncontact_links:\n - name: Packer Community Support\n url: https://discuss.hashicorp.com/c/packer/23\n about: If you have a question, or are looking for advice, please post on our Discuss forum! The community loves to chime in to help. Happy Coding!\n
dataset_sample\yaml\hashicorp_packer\.github\ISSUE_TEMPLATE\config.yml
config.yml
YAML
349
0.8
0.125
0.285714
awesome-app
66
2025-06-26T02:26:52.948849
Apache-2.0
false
ead12bfcd9ada6c3c3bcf781f6768d1a
name: Close Stale Issues\n\non:\n schedule:\n - cron: '0 0 * * *'\n\npermissions:\n contents: read\n\njobs:\n stale-bot:\n permissions:\n issues: write # for actions/stale to close stale issues\n pull-requests: write # for actions/stale to close stale PRs\n runs-on: ubuntu-latest\n steps:\n - uses: actions/stale@5bef64f19d7facfb25b37b414482c7164d639639 # v9.1.0\n with:\n repo-token: ${{ secrets.GITHUB_TOKEN }}\n days-before-issue-stale: 23\n days-before-pr-stale: -1 # deactivate the action for PRs\n days-before-close: 7\n stale-issue-message: |\n Hi,\n\n This issue has not received any update in the last 3 weeks, and will automatically be closed in 7 days if it does not receive any activity by then.\n\n If you find the [community forum](https://discuss.hashicorp.com/c/packer) to be more helpful or if you've found the answer to your question elsewhere please feel free to post a response and close the issue.\n only-labels: needs-reply\n
dataset_sample\yaml\hashicorp_packer\.github\workflows\auto-close-stale-issues.yml
auto-close-stale-issues.yml
YAML
1,045
0.8
0.172414
0
awesome-app
361
2024-10-14T01:45:37.091313
BSD-3-Clause
false
828d3933dec7542b05f8685d6488c13b
---\nname: Backport Assistant Runner\n\non:\n pull_request_target:\n types:\n - closed\n - labeled\n\npermissions:\n contents: read\n\njobs:\n backport:\n permissions:\n contents: none\n if: github.event.pull_request.merged\n runs-on: ubuntu-latest\n container: hashicorpdev/backport-assistant:0.5.3\n steps:\n - name: Backport changes to stable-website\n run: |\n backport-assistant backport -automerge\n env:\n BACKPORT_LABEL_REGEXP: "backport/(?P<target>website)"\n BACKPORT_TARGET_TEMPLATE: "stable-{{.target}}"\n GITHUB_TOKEN: ${{ secrets.ELEVATED_GITHUB_TOKEN }}\n - name: Backport changes to latest release branch\n run: |\n resp=$(curl -f -s "https://api.github.com/repos/$GITHUB_REPOSITORY/labels?per_page=100")\n ret="$?"\n if [[ "$ret" -ne 0 ]]; then\n echo "The GitHub API returned $ret"\n exit $ret\n fi\n # get the latest backport label excluding any website labels, ex: `backport/0.3.x` and not `backport/website`\n latest_backport_label=$(echo "$resp" | jq -r '.[] | select(.name | (startswith("backport/") and (contains("website") | not))) | .name' | sort -rV | head -n1)\n echo "Latest backport label: $latest_backport_label"\n # set BACKPORT_TARGET_TEMPLATE for backport-assistant\n # trims backport/ from the beginning with parameter substitution\n export BACKPORT_TARGET_TEMPLATE="release/${latest_backport_label#backport/}"\n backport-assistant backport -automerge\n env:\n BACKPORT_LABEL_REGEXP: "backport/(?P<target>website)"\n GITHUB_TOKEN: ${{ secrets.ELEVATED_GITHUB_TOKEN }}\n - name: Backport changes to targeted release branch\n run: |\n backport-assistant backport -automerge\n env:\n BACKPORT_LABEL_REGEXP: "backport/(?P<target>\\d+\\.\\d+\\.\\w+)"\n BACKPORT_TARGET_TEMPLATE: "release/{{.target}}"\n GITHUB_TOKEN: ${{ secrets.ELEVATED_GITHUB_TOKEN }}\n
dataset_sample\yaml\hashicorp_packer\.github\workflows\backport.yml
backport.yml
YAML
2,041
0.8
0.057692
0.061224
awesome-app
111
2025-02-06T11:04:07.149828
Apache-2.0
false
fd32025fa2e12c31cba5b477dc274c31
#\n# This GitHub action builds Packer binaries, linux packages,\n# and Docker images from source, and uploads them to GitHub artifacts.\n# Note that artifacts available via GitHub Artifacts are not codesigned or notarized.\n#\n\nname: build\n\non: \n workflow_dispatch: \n workflow_call:\n push:\n branches:\n - main\n - release/**\n - feature/**\n\nenv:\n REPO_NAME: "packer"\n\npermissions:\n contents: read\n\njobs:\n get-go-version:\n runs-on: ubuntu-latest\n outputs:\n go-version: ${{ steps.get-go-version.outputs.go-version }}\n steps:\n - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2\n - name: 'Determine Go version'\n id: get-go-version\n # We use .go-version as our source of truth for current Go\n # version, because "goenv" can react to it automatically.\n run: |\n echo "Building with Go $(cat .go-version)"\n echo "go-version=$(cat .go-version)" >> $GITHUB_OUTPUT\n\n set-product-version:\n runs-on: ubuntu-latest\n outputs:\n product-version: ${{ steps.set-product-version.outputs.product-version }}\n base-product-version: ${{ steps.set-product-version.outputs.base-product-version }}\n product-date: ${{ steps.set-product-version.outputs.product-date }}\n product-prerelease-version: ${{ steps.set-product-version.outputs.prerelease-product-version }}\n set-ld-flags: ${{ steps.set-ld-flags.outputs.set-ld-flags }}\n steps:\n - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2\n - name: set product version\n id: set-product-version\n uses: hashicorp/actions-set-product-version@v1\n - name: set-ld-flags\n id: set-ld-flags\n run: |\n T="github.com/hashicorp/packer/version"\n echo "set-ld-flags=-s -w -B gobuildid -X ${T}.GitCommit=${GITHUB_SHA::8} -X ${T}.GitDescribe=${{ steps.set-product-version.outputs.product-version }} -X ${T}.Version=${{ steps.set-product-version.outputs.base-product-version }} -X ${T}.VersionPrerelease=${{ steps.set-product-version.outputs.prerelease-product-version }} -X ${T}.VersionMetadata=" >> $GITHUB_OUTPUT\n - name: validate outputs\n run: |\n echo "Product Version: ${{ steps.set-product-version.outputs.product-version }}"\n echo "Base Product Version: ${{ steps.set-product-version.outputs.base-product-version }}"\n echo "Prerelease Version: ${{ steps.set-product-version.outputs.prerelease-product-version }}"\n echo "ldflags: ${{ steps.set-ld-flags.outputs.set-ld-flags }}"\n\n generate-metadata-file:\n needs: set-product-version\n runs-on: ubuntu-latest\n outputs:\n filepath: ${{ steps.generate-metadata-file.outputs.filepath }}\n steps:\n - name: 'Checkout directory'\n uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2\n - name: Generate metadata file\n id: generate-metadata-file\n uses: hashicorp/actions-generate-metadata@main\n with:\n version: ${{ needs.set-product-version.outputs.product-version }}\n product: ${{ env.REPO_NAME }}\n\n - uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0\n with:\n name: metadata.json\n path: ${{ steps.generate-metadata-file.outputs.filepath }}\n \n build-other:\n needs:\n - set-product-version\n - get-go-version\n runs-on: ubuntu-latest\n strategy:\n matrix:\n goos: [ freebsd, windows, netbsd, openbsd, solaris ]\n goarch: [ "386", "amd64", "arm"]\n go: [ "${{ needs.get-go-version.outputs.go-version }}" ]\n exclude:\n - goos: solaris\n goarch: 386\n - goos: solaris\n goarch: arm\n - goos: windows\n goarch: arm\n fail-fast: true\n\n name: Go ${{ matrix.go }} ${{ matrix.goos }} ${{ matrix.goarch }} build\n\n env:\n GOPRIVATE: "github.com/hashicorp"\n GO111MODULE: on\n steps:\n - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2\n - name: Go Build\n env:\n PRODUCT_VERSION: ${{ needs.set-product-version.outputs.product-version }}\n PRERELEASE_VERSION: ${{ needs.set-product-version.outputs.product-prerelease-version }}\n LD_FLAGS: "${{ needs.set-product-version.outputs.set-ld-flags}}"\n CGO_ENABLED: "0"\n uses: hashicorp/actions-go-build@v1\n with:\n product_name: ${{ env.REPO_NAME }}\n product_version: ${{ needs.set-product-version.outputs.product-version }}\n go_version: ${{ matrix.go }}\n os: ${{ matrix.goos }}\n arch: ${{ matrix.goarch }}\n reproducible: report\n instructions: |-\n cp LICENSE "$TARGET_DIR/LICENSE.txt"\n go build -o "$BIN_PATH" -ldflags="$LD_FLAGS" -trimpath -buildvcs=false \n\n build-linux:\n needs:\n - set-product-version\n - get-go-version\n runs-on: ubuntu-latest\n strategy:\n matrix:\n goos: [ linux ]\n goarch: [ "arm", "arm64", "386", "amd64", "ppc64le"]\n go: [ "${{ needs.get-go-version.outputs.go-version }}" ]\n fail-fast: true\n\n name: Go ${{ matrix.go }} ${{ matrix.goos }} ${{ matrix.goarch }} build\n\n env:\n GOPRIVATE: "github.com/hashicorp"\n GO111MODULE: on\n\n steps:\n - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2\n - name: Go Build\n env:\n PRODUCT_VERSION: ${{ needs.set-product-version.outputs.product-version }}\n PRERELEASE_VERSION: ${{ needs.set-product-version.outputs.product-prerelease-version }}\n LD_FLAGS: "${{ needs.set-product-version.outputs.set-ld-flags}}"\n CGO_ENABLED: "0"\n uses: hashicorp/actions-go-build@v1\n with:\n product_name: ${{ env.REPO_NAME }}\n product_version: ${{ needs.set-product-version.outputs.product-version }}\n go_version: ${{ matrix.go }}\n os: ${{ matrix.goos }}\n arch: ${{ matrix.goarch }}\n reproducible: report\n instructions: |-\n cp LICENSE "$TARGET_DIR/LICENSE.txt"\n go build -o "$BIN_PATH" -ldflags="$LD_FLAGS" -trimpath -buildvcs=false\n\n - name: Copy license file to config_dir\n if: ${{ matrix.goos == 'linux' }}\n env:\n LICENSE_DIR: ".release/linux/package/usr/share/doc/${{ env.REPO_NAME }}"\n run: |\n mkdir -p "$LICENSE_DIR" && cp LICENSE "$LICENSE_DIR/LICENSE.txt"\n - name: Linux Packaging\n uses: hashicorp/actions-packaging-linux@v1\n with:\n name: ${{ env.REPO_NAME }}\n description: "HashiCorp Packer - A tool for creating identical machine images for multiple platforms from a single source configuration"\n arch: ${{ matrix.goarch }}\n version: ${{ needs.set-product-version.outputs.product-version }}\n maintainer: "HashiCorp"\n homepage: "https://www.packer.io/docs"\n license: "BUSL-1.1"\n binary: "dist/${{ env.REPO_NAME }}"\n deb_depends: "openssl"\n rpm_depends: "openssl"\n config_dir: ".release/linux/package/"\n - name: Add Linux Package names to env\n run: |\n echo "RPM_PACKAGE=$(basename out/*.rpm)" >> $GITHUB_ENV\n echo "DEB_PACKAGE=$(basename out/*.deb)" >> $GITHUB_ENV\n - uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0\n with:\n name: ${{ env.RPM_PACKAGE }}\n path: out/${{ env.RPM_PACKAGE }}\n - uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0\n with:\n name: ${{ env.DEB_PACKAGE }}\n path: out/${{ env.DEB_PACKAGE }}\n\n build-darwin:\n needs:\n - set-product-version\n - get-go-version\n runs-on: macos-latest\n strategy:\n matrix:\n goos: [ darwin ]\n goarch: [ "amd64", "arm64" ]\n go: [ "${{ needs.get-go-version.outputs.go-version }}" ]\n fail-fast: true\n name: Go ${{ matrix.go }} ${{ matrix.goos }} ${{ matrix.goarch }} build\n\n env:\n GOPRIVATE: "github.com/hashicorp"\n GO111MODULE: on\n\n steps:\n - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2\n - name: Go Build\n env:\n PRODUCT_VERSION: ${{ needs.set-product-version.outputs.product-version }}\n PRERELEASE_VERSION: ${{ needs.set-product-version.outputs.product-prerelease-version }}\n LD_FLAGS: "${{ needs.set-product-version.outputs.set-ld-flags}}"\n CGO_ENABLED: "0"\n uses: hashicorp/actions-go-build@v1\n with:\n product_name: ${{ env.REPO_NAME }}\n product_version: ${{ needs.set-product-version.outputs.product-version }}\n go_version: ${{ matrix.go }}\n os: ${{ matrix.goos }}\n arch: ${{ matrix.goarch }}\n reproducible: report\n instructions: |-\n cp LICENSE "$TARGET_DIR/LICENSE.txt"\n go build -o "$BIN_PATH" -ldflags="$LD_FLAGS" -tags netcgo -trimpath -buildvcs=false\n\n build-docker-light:\n name: Docker light ${{ matrix.arch }} build\n needs:\n - set-product-version\n - build-linux\n runs-on: ubuntu-latest\n strategy:\n matrix:\n arch: [ "arm", "arm64", "386", "amd64" ]\n env:\n version: ${{ needs.set-product-version.outputs.product-version }}\n steps:\n - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2\n - name: Docker Build (Action)\n uses: hashicorp/actions-docker-build@v2\n with:\n version: ${{ env.version }}\n target: release-light\n arch: ${{ matrix.arch }}\n tags: |\n ${{ steps.set-product-version.output.prerelease-product-version == '' && format('docker.io/hashicorp/{0}:light', env.REPO_NAME) }}\n docker.io/hashicorp/${{ env.REPO_NAME }}:light-${{ env.version }}\n docker.io/hashicorp/${{ env.REPO_NAME }}:${{ env.version }}\n ${{ steps.set-product-version.output.prerelease-product-version == '' && format('public.ecr.aws/hashicorp/{0}:light', env.REPO_NAME) }}\n public.ecr.aws/hashicorp/${{ env.REPO_NAME }}:light-${{ env.version }}\n public.ecr.aws/hashicorp/${{ env.REPO_NAME }}:${{ env.version }}\n dev_tags: |\n docker.io/hashicorppreview/${{ env.REPO_NAME }}:${{ env.version }}\n docker.io/hashicorppreview/${{ env.REPO_NAME }}:${{ env.version }}-${{ github.sha }}\n\n build-docker-full:\n name: Docker full ${{ matrix.arch }} build\n needs:\n - set-product-version\n - build-linux\n runs-on: ubuntu-latest\n strategy:\n matrix:\n arch: [ "arm", "arm64", "386", "amd64" ]\n env:\n version: ${{ needs.set-product-version.outputs.product-version }}\n steps:\n - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2\n - name: Docker Build (Action)\n uses: hashicorp/actions-docker-build@v2\n with:\n version: ${{ env.version }}\n target: release-full\n arch: ${{ matrix.arch }}\n tags: |\n ${{ steps.set-product-version.output.prerelease-product-version == '' && format('docker.io/hashicorp/{0}:full', env.REPO_NAME) }}\n docker.io/hashicorp/${{ env.REPO_NAME }}:full-${{ env.version }}\n ${{ steps.set-product-version.output.prerelease-product-version == '' && format('public.ecr.aws/hashicorp/{0}:full', env.REPO_NAME) }}\n public.ecr.aws/hashicorp/${{ env.REPO_NAME }}:full-${{ env.version }}\n dev_tags: |\n docker.io/hashicorppreview/${{ env.REPO_NAME }}:full-${{ env.version }}\n docker.io/hashicorppreview/${{ env.REPO_NAME }}:full-${{ env.version }}-${{ github.sha }}\n
dataset_sample\yaml\hashicorp_packer\.github\workflows\build.yml
build.yml
YAML
11,761
0.8
0.013699
0.02583
vue-tools
241
2023-07-11T06:27:25.428933
MIT
false
4387a06a7da4f7b840ab526cace34a2e
name: Create a release branch\non: [workflow_dispatch]\njobs:\n create-branch:\n runs-on: ubuntu-latest\n steps:\n - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2\n - uses: hashicorp/actions-create-release-branch@v1\n with:\n token: ${{ secrets.ELEVATED_GITHUB_TOKEN }}\n
dataset_sample\yaml\hashicorp_packer\.github\workflows\create-release-branch.yml
create-release-branch.yml
YAML
321
0.8
0
0
vue-tools
913
2024-08-14T20:44:33.674173
GPL-3.0
false
e03bdcc7072a523073e24ee4c96d3653
#\n# This GitHub action runs basic linting checks for Packer.\n#\n\nname: "Go Validate"\n\non:\n push:\n branches:\n - 'main'\n - release/**\n - feature/**\n pull_request:\n\npermissions:\n contents: read\n\njobs:\n get-go-version:\n runs-on: ubuntu-latest\n outputs:\n go-version: ${{ steps.get-go-version.outputs.go-version }}\n steps:\n - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2\n - name: 'Determine Go version'\n id: get-go-version\n run: |\n echo "Found Go $(cat .go-version)"\n echo "go-version=$(cat .go-version)" >> $GITHUB_OUTPUT\n check-mod-tidy:\n needs:\n - get-go-version\n runs-on: ubuntu-latest\n name: Go Mod Tidy\n steps:\n - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2\n - uses: actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34 # v5.3.0\n with:\n go-version: ${{ needs.get-go-version.outputs.go-version }}\n - run: go mod tidy\n check-lint:\n needs:\n - get-go-version\n runs-on: ubuntu-latest\n name: Lint\n steps:\n - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2\n with:\n fetch-depth: 0\n - uses: actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34 # v5.3.0\n with:\n go-version: ${{ needs.get-go-version.outputs.go-version }}\n - run: echo "$GITHUB_SHA"\n - run: git fetch --all\n - run: echo $(git merge-base origin/main $GITHUB_SHA)\n - run: make ci-lint\n check-fmt:\n needs:\n - get-go-version\n runs-on: ubuntu-latest\n name: Fmt check\n steps:\n - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2\n - uses: actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34 # v5.3.0\n with:\n go-version: ${{ needs.get-go-version.outputs.go-version }}\n - run: make fmt-check\n check-generate:\n needs:\n - get-go-version\n runs-on: ubuntu-latest\n name: Generate check\n steps:\n - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2\n - uses: actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34 # v5.3.0\n with:\n go-version: ${{ needs.get-go-version.outputs.go-version }}\n - run: make generate-check\n
dataset_sample\yaml\hashicorp_packer\.github\workflows\go-validate.yml
go-validate.yml
YAML
2,307
0.8
0.012821
0.040541
awesome-app
275
2023-11-03T01:42:08.691990
BSD-3-Clause
false
d3b89e32cca0694844c87cdd2eb48766
name: Issue Comment Created Triage\n\non:\n issue_comment:\n types: [created]\n\npermissions:\n contents: read\n\njobs:\n issue_comment_triage:\n permissions:\n contents: read # for actions/checkout to fetch code\n issues: write # for actions-ecosystem/action-remove-labels to remove issue labels\n if: ${{contains(github.event.issue.labels.*.name, 'waiting-reply') || contains(github.event.issue.labels.*.name, 'stale')}}\n runs-on: ubuntu-latest\n steps:\n - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2\n - uses: actions-ecosystem/action-remove-labels@2ce5d41b4b6aa8503e285553f75ed56e0a40bae0 # v1.3.0\n with:\n github_token: "${{ secrets.GITHUB_TOKEN }}"\n labels: |\n stale\n waiting-reply\n
dataset_sample\yaml\hashicorp_packer\.github\workflows\issue-comment-created.yml
issue-comment-created.yml
YAML
787
0.8
0.125
0
awesome-app
406
2025-02-08T03:15:21.081249
GPL-3.0
false
820f7e7750f960769868dce965d59529
name: Migrate Remote Plugin Issues\n\non:\n issues:\n types: [labeled]\n\npermissions:\n issues: write\n\njobs:\n PluginSplit:\n if: startsWith(github.event.label.name, 'remote-plugin/')\n runs-on: ubuntu-latest\n steps:\n - uses: bflad/action-migrate-issue@2e049d822b08e67d25b938343227051518f14d9a # v1.0.2\n with:\n source-issue-comment: |\n This issue has been migrated to {target-issue-url} due to the [Packer Plugin split](https://github.com/hashicorp/packer/issues/8610#issuecomment-770034737).\n\n Please follow the new issue for updates.\n source-issue-skip-label-names: |\n core\n new-plugin-contribution\n website\n target-repository-name-prefix: 'packer-plugin-'\n target-repository-name-prefix-label-prefix: 'remote-plugin/'\n target-repository-github-token: ${{ secrets.PLUGIN_REPO_GITHUB_TOKEN }}\n
dataset_sample\yaml\hashicorp_packer\.github\workflows\issue-migrator.yml
issue-migrator.yml
YAML
912
0.8
0.074074
0
awesome-app
228
2024-12-06T08:47:01.189342
BSD-3-Clause
false
6b2ea706bdf65ace88b0b6c4c6360ada
on:\n issues:\n types: [opened]\n\npermissions:\n contents: read\n\njobs:\n issue_triage:\n name: Issue Opened Triage\n permissions:\n contents: read\n issues: write # for github/issue-labeler to create or remove labels\n runs-on: ubuntu-latest\n steps:\n - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2\n - uses: github/issue-labeler@c1b0f9f52a63158c4adc09425e858e87b32e9685 # v3.4\n with:\n repo-token: "${{ secrets.GITHUB_TOKEN }}"\n configuration-path: .github/labeler-issue-triage.yml\n enable-versioned-regex: 0\n label-question:\n name: Redirect to discuss\n permissions:\n contents: read\n issues: write # for actions/github-script to create comments and add labels\n if: contains(github.event.issue.labels.*.name, 'question')\n runs-on: ubuntu-latest\n steps:\n - uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1\n with:\n script: |\n github.rest.issues.createComment({\n issue_number: context.issue.number,\n owner: context.repo.owner,\n repo: context.repo.repo,\n body: `\n Hi 👋 thanks for reaching out.\n\n For general questions we recommend reaching out to the [community forum](https://discuss.hashicorp.com/c/packer) for greater visibility.\n As the GitHub issue tracker is only watched by a small subset of maintainers and is really reserved for bugs and enhancements, you'll have a better chance of finding someone who can help you in the forum.\n We'll mark this issue as needs-reply to help inform maintainers that this question is awaiting a response.\n If no activity is taken on this question within 30 days it will be automatically closed.\n\n If you find the forum to be more helpful or if you've found the answer to your question elsewhere please feel free to post a response and close the issue.`\n })\n\n - uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1\n with:\n script: |\n github.rest.issues.addLabels({\n issue_number: context.issue.number,\n owner: context.repo.owner,\n repo: context.repo.repo,\n labels: ['needs-reply']\n })\n\n
dataset_sample\yaml\hashicorp_packer\.github\workflows\issues-opened.yml
issues-opened.yml
YAML
2,363
0.8
0.122807
0
react-lib
5
2023-07-21T18:03:14.140006
MIT
false
7ac4f480e7e0303152792c16882a04a4
on:\n issues:\n types: [labeled]\n\npermissions:\n contents: read\n\nname: JIRA Sync\n\njobs:\n sync:\n name: Sync to JIRA\n permissions:\n issues: write # for actions/github-script to create comments\n runs-on: ubuntu-latest\n steps: \n - name: Login\n uses: atlassian/gajira-login@45fd029b9f1d6d8926c6f04175aa80c0e42c9026 # v3.0.1\n env:\n JIRA_BASE_URL: ${{ secrets.JIRA_BASE_URL }}\n JIRA_USER_EMAIL: ${{ secrets.JIRA_USER_EMAIL }}\n JIRA_API_TOKEN: ${{ secrets.JIRA_API_TOKEN }}\n\n - name: Search\n if: github.event.action == 'labeled'\n id: search\n uses: tomhjp/gh-action-jira-search@04700b457f317c3e341ce90da5a3ff4ce058f2fa # v0.2.2\n with:\n # cf[10089] is Issue Link (use JIRA API to retrieve)\n jql: 'project = "HPR" AND cf[10089] = "${{ github.event.issue.html_url }}"'\n\n\n - name: Set type\n id: set-ticket-type\n run: |\n # Questions are not tracked in JIRA at this time.\n if [[ "${{ contains(github.event.issue.labels.*.name, 'question') }}" == "true" ]]; then\n echo "type=Invalid" >> $GITHUB_OUTPUT\n else\n # Properly labeled GH issues are assigned the standard "GH Issue" type upon creation.\n echo "type=GH Issue" >> $GITHUB_OUTPUT\n fi\n\n - name: Set labels\n id: set-ticket-labels \n run: |\n if [[ "${{ contains(github.event.issue.labels.*.name, 'bug') }}" == "true" ]]; then\n echo "labels=[\"bug\"]" >> $GITHUB_OUTPUT\n elif [[ "${{ contains(github.event.issue.labels.*.name, 'enhancement') }}" == "true" ]]; then\n echo "labels=[\"enhancement\"]" >> $GITHUB_OUTPUT\n else\n echo "labels=[]" >> $GITHUB_OUTPUT\n fi\n\n - name: Validate ticket\n if: steps.set-ticket-type.outputs.type == 'Invalid'\n run: |\n echo "Questions are not being synced to JIRA at this time."\n echo "If the issue is a bug or an enhancement please remove the question label and reapply the 'sync to jira' label."\n\n - name: Create ticket\n id: create-ticket\n if: steps.search.outputs.issue == '' && github.event.label.name == 'sync to jira' && steps.set-ticket-type.outputs.type != 'Invalid'\n uses: atlassian/gajira-create@59e177c4f6451399df5b4911c2211104f171e669 # v3.0.1\n with:\n project: HPR\n issuetype: "${{ steps.set-ticket-type.outputs.type }}"\n summary: "${{ github.event.repository.name }}: ${{ github.event.issue.title }}"\n description: "${{ github.event.issue.body }}\n\n_Created from GitHub by ${{ github.actor }}._"\n # The field customfield_10089 refers to the Issue Link field in JIRA. \n fields: '{ "customfield_10089": "${{ github.event.issue.html_url }}", "components": [{ "name": "core" }], "labels": ${{ steps.set-ticket-labels.outputs.labels }} }'\n\n - name: Add tracking comment\n if: steps.create-ticket.outputs.issue != '' && steps.set-ticket-type.outputs.type != 'Invalid'\n uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1\n with:\n script: |\n github.rest.issues.createComment({\n issue_number: context.issue.number,\n owner: context.repo.owner,\n repo: context.repo.repo,\n body: `\n This issue has been synced to JIRA for planning.\n JIRA ID: [${{ steps.create-ticket.outputs.issue }}](https://hashicorp.atlassian.net/browse/${{steps.create-ticket.outputs.issue}})`\n })\n\n
dataset_sample\yaml\hashicorp_packer\.github\workflows\jira.yml
jira.yml
YAML
3,620
0.8
0.093023
0.053333
awesome-app
592
2025-05-16T10:25:55.155163
GPL-3.0
false
e759aaa54ac456626521cde4baa9e434
name: 'Lock Threads'\n\non:\n schedule:\n - cron: '50 1 * * *'\n\n# Only 50 issues will be handled during a given run.\npermissions:\n contents: read\n\njobs:\n lock:\n permissions:\n issues: write # for dessant/lock-threads to lock issues\n pull-requests: write # for dessant/lock-threads to lock PRs\n runs-on: ubuntu-latest\n steps:\n - uses: dessant/lock-threads@1bf7ec25051fe7c00bdd17e6a7cf3d7bfb7dc771 # v5.0.1\n with:\n github-token: ${{ github.token }}\n issue-comment: >\n I'm going to lock this issue because it has been closed for _30 days_ ⏳. This helps our maintainers find and focus on the active issues.\n\n If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.\n issue-inactive-days: '30'\n # Issues older than 180 days ago should be ignored\n exclude-issue-created-before: '2020-11-01'\n pr-comment: >\n I'm going to lock this pull request because it has been closed for _30 days_ ⏳. This helps our maintainers find and focus on the active issues.\n\n If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.\n pr-inactive-days: '30'\n # Issues older than 180 days ago should be ignored\n exclude-pr-created-before: '2020-11-01'\n\n
dataset_sample\yaml\hashicorp_packer\.github\workflows\lock.yml
lock.yml
YAML
1,538
0.8
0.114286
0.103448
vue-tools
43
2024-08-19T10:49:14.371646
MIT
false
c6483fecb20c8555fb63c00bab283423
#\n# This GitHub action triggers a fresh set of Packer builds\n# and publishes them to GitHub Releases under the `nightly` tag.\n# Note that artifacts available via GitHub Releases are not codesigned or notarized.\n# Failures are reported to slack.\n#\n\nname: Nightly Release\n\non:\n schedule:\n # Runs against the default branch every day at midnight\n - cron: "0 0 * * *"\n workflow_dispatch:\n\npermissions:\n contents: write\n\njobs:\n # Build a fresh set of artifacts\n build-artifacts:\n uses: hashicorp/packer/.github/workflows/build.yml@main\n github-release:\n needs: build-artifacts\n runs-on: ubuntu-latest\n steps:\n - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2\n - name: Download built artifacts\n uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8\n with:\n path: out/\n # Set BUILD_OUTPUT_LIST to out\<project>-<version>.<fileext>\*,out\...\n # This is needed to attach the build artifacts to the GitHub Release\n - name: Set BUILD_OUTPUT_LIST\n run: |\n echo "$(ls -xm1 out/)" > tmp.txt\n cat tmp.txt | sed 's:.*:out/&/*:' > tmp2.txt\n echo "BUILD_OUTPUT_LIST=$(cat tmp2.txt | tr '\n' ',' | perl -ple 'chop')" >> $GITHUB_ENV\n rm -rf tmp.txt && rm -rf tmp2.txt\n - name: Advance nightly tag\n uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1\n with:\n github-token: ${{ secrets.GITHUB_TOKEN }}\n script: |\n try {\n await github.rest.git.deleteRef({\n owner: context.repo.owner,\n repo: context.repo.repo,\n ref: "tags/nightly"\n })\n } catch (e) {\n console.log("Warning: The nightly tag doesn't exist yet, so there's nothing to do. Trace: " + e)\n }\n await github.rest.git.createRef({\n owner: context.repo.owner,\n repo: context.repo.repo,\n ref: "refs/tags/nightly",\n sha: context.sha\n })\n # This will create a new GitHub Release called `nightly`\n # If a release with this name already exists, it will overwrite the existing data\n - name: Create a nightly GitHub prerelease\n id: create_prerelease\n continue-on-error: true\n uses: ncipollo/release-action@cdcc88a9acf3ca41c16c37bb7d21b9ad48560d87 # v1.15.0\n with:\n name: nightly\n artifacts: "${{ env.BUILD_OUTPUT_LIST }}"\n tag: nightly\n bodyFile: ".github/workflows/nightly-release-readme.md"\n prerelease: true\n allowUpdates: true\n removeArtifacts: true\n draft: false\n token: ${{ secrets.GITHUB_TOKEN }}\n - name: Store GitHub Release ID\n if: steps.create_prerelease.outcome == 'success'\n run: |\n echo "prerelease_id=${{ steps.create_prerelease.outputs.id }}" >> $GITHUB_ENV\n - name: Sleep before retry\n id: sleep_before_retry\n if: steps.create_prerelease.outcome == 'failure'\n run : sleep 30m\n shell: bash\n - name: Retry failed nightly GitHub prerelease\n id: create_prerelease_retry\n if: steps.create_prerelease.outcome == 'failure'\n uses: ncipollo/release-action@cdcc88a9acf3ca41c16c37bb7d21b9ad48560d87 # v1.15.0\n with:\n name: nightly\n artifacts: "${{ env.BUILD_OUTPUT_LIST }}"\n tag: nightly\n bodyFile: ".github/workflows/nightly-release-readme.md"\n prerelease: true\n allowUpdates: true\n removeArtifacts: true\n draft: false\n token: ${{ secrets.GITHUB_TOKEN }}\n - name: Store Updated GitHub Release ID \n if: steps.create_prerelease_retry.outcome == 'success'\n run: |\n echo "prerelease_id=${{ steps.create_prerelease_retry.outputs.id }}" >> $GITHUB_ENV\n - name: Publish nightly GitHub prerelease\n uses: eregon/publish-release@01df127f5e9a3c26935118e22e738d95b59d10ce # v1.0.6\n env:\n GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}\n with:\n release_id: ${{ env.prerelease_id }}\n # Send a slack notification if either job defined above fails\n slack-notify:\n permissions:\n contents: none\n needs:\n - build-artifacts\n - github-release\n if: always() && (needs.build-artifacts.result == 'failure' || needs.github-release.result == 'failure')\n runs-on: ubuntu-latest\n steps:\n - name: Send slack notification on failure\n uses: slackapi/slack-github-action@37ebaef184d7626c5f204ab8d3baff4262dd30f0 # v1.27.0\n with:\n payload: |\n {\n "text": ":alert: Packer Nightly Release *FAILED* :alert:",\n "attachments": [\n {\n "color": "#C41E3A",\n "blocks": [\n {\n "type": "section",\n "text": {\n "type": "mrkdwn",\n "text": "Branch: `${{ github.ref_name }}`\nRef: ${{ github.sha }}\nWorkflow: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"\n }\n }\n ]\n }\n ]\n }\n env:\n SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}\n SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK\n
dataset_sample\yaml\hashicorp_packer\.github\workflows\nightly-release.yml
nightly-release.yml
YAML
5,461
0.8
0.056338
0.094203
react-lib
505
2024-04-18T16:01:16.698045
MIT
false
e4f971b918969307f9ee3f0404887a3b
# Copyright (c) HashiCorp, Inc.\n# SPDX-License-Identifier: BUSL-1.1\n\ncomment:\n layout: "flags, files"\n behavior: default\n require_changes: true # only comment on changes in coverage\n require_base: yes # [yes :: must have a base report to post]\n require_head: yes # [yes :: must have a head report to post]\n branches: # branch names that can post comment\n - "main"\n\ncoverage:\n status:\n project:\n default:\n informational: true\n target: auto\n threshold: "0.5%"\n patch:\n default:\n informational: true\n target: auto\n threshold: "0.5%"\n\ngithub_checks:\n annotations: false\n
dataset_sample\yaml\hashicorp_terraform\codecov.yml
codecov.yml
YAML
665
0.95
0
0.083333
python-kit
943
2024-06-20T16:10:27.402135
GPL-3.0
false
42fac7dc4a23d263bc6792b7481612a9
# Copyright (c) HashiCorp, Inc.\n# SPDX-License-Identifier: BUSL-1.1\n\ncontact_links:\n - name: Ask a Question\n url: https://discuss.hashicorp.com/c/vagrant\n about: If you have a question or are looking for advice, please post on our Discuss forum.\n
dataset_sample\yaml\hashicorp_vagrant\.github\ISSUE_TEMPLATE\config.yml
config.yml
YAML
253
0.8
0.142857
0.333333
python-kit
788
2024-09-07T11:07:15.150742
MIT
false
57c100c6f905f0184459252d8c187f8b
---\nname: Backport Assistant Runner\n\non:\n pull_request_target:\n types:\n - closed\n - labeled\n\njobs:\n backport:\n if: github.event.pull_request.merged\n runs-on: ubuntu-latest\n container: hashicorpdev/backport-assistant:0.2.3\n steps:\n - name: Backport changes to stable-website\n run: |\n backport-assistant backport -automerge\n env:\n BACKPORT_LABEL_REGEXP: "backport/(?P<target>website)"\n BACKPORT_TARGET_TEMPLATE: "stable-{{.target}}"\n GITHUB_TOKEN: ${{ secrets.HASHIBOT_TOKEN }}\n
dataset_sample\yaml\hashicorp_vagrant\.github\workflows\backport.yml
backport.yml
YAML
558
0.7
0.045455
0
awesome-app
505
2023-09-15T02:00:32.855995
MIT
false
9aad9dba1b8d3ddca5c31ee1c9bca2cd
name: Legacy Link Format Checker\n\non:\n push:\n paths:\n - "website/content/**/*.mdx"\n - "website/data/*-nav-data.json"\n\njobs:\n check-links:\n uses: hashicorp/dev-portal/.github/workflows/docs-content-check-legacy-links-format.yml@475289345d312552b745224b46895f51cc5fc490\n with:\n repo-owner: "hashicorp"\n repo-name: "vagrant"\n commit-sha: ${{ github.sha }}\n mdx-directory: "website/content"\n nav-data-directory: "website/data"\n
dataset_sample\yaml\hashicorp_vagrant\.github\workflows\check-legacy-links-format.yml
check-legacy-links-format.yml
YAML
469
0.8
0
0
vue-tools
70
2024-07-08T14:36:15.011974
MIT
false
77628ea5dc33fdccad2a3738d0e692f0
on:\n push:\n branches:\n - 'main'\n - 'spec-test-*'\n\njobs:\n sync-acceptance:\n if: github.repository == 'hashicorp/vagrant'\n runs-on: ubuntu-latest\n steps:\n - name: Code Checkout\n uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2\n with:\n persist-credentials: false\n fetch-depth: 0\n - name: Sync Acceptance Testing Repository\n run: ./.ci/sync.sh\n working-directory: ${{github.workspace}}\n env:\n HASHIBOT_TOKEN: ${{ secrets.HASHIBOT_TOKEN }}\n HASHIBOT_USERNAME: ${{ secrets.HASHIBOT_USERNAME }}\n SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}\n
dataset_sample\yaml\hashicorp_vagrant\.github\workflows\code.yml
code.yml
YAML
671
0.8
0.043478
0
vue-tools
575
2023-10-11T11:48:34.454293
Apache-2.0
false
53bcb887f4b502489c0bd220b66f3938
name: Appimage Vagrant Development Build\non:\n push:\n branches: 'dev-appimage-*'\n workflow_dispatch:\n\njobs:\n trigger-build:\n if: github.repository == 'hashicorp/vagrant'\n name: Trigger Vagrant Appimage Development Build\n runs-on: ubuntu-latest\n steps:\n - name: Code Checkout\n uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2\n - name: Trigger Development Build\n run: ./.ci/dev-build "${BRANCH}" "${COMMIT_ID}" build-appimage\n env:\n HASHIBOT_TOKEN: ${{ secrets.HASHIBOT_TOKEN }}\n BRANCH: ${{ github.ref_name }}\n COMMIT_ID: ${{ github.sha }}\n
dataset_sample\yaml\hashicorp_vagrant\.github\workflows\dev-appimage-build.yml
dev-appimage-build.yml
YAML
638
0.8
0.05
0
node-utils
228
2025-02-03T04:58:37.128513
BSD-3-Clause
false
75c1b85c5eb36b13f0cb9566566722c8
name: Arch Linux Vagrant Development Build\non:\n push:\n branches: 'dev-arch-*'\n workflow_dispatch:\n\njobs:\n trigger-build:\n if: github.repository == 'hashicorp/vagrant'\n name: Trigger Vagrant Arch Linux Development Build\n runs-on: ubuntu-latest\n steps:\n - name: Code Checkout\n uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2\n - name: Trigger Development Build\n run: ./.ci/dev-build "${BRANCH}" "${COMMIT_ID}" build-arch\n env:\n HASHIBOT_TOKEN: ${{ secrets.HASHIBOT_TOKEN }}\n BRANCH: ${{ github.ref_name }}\n COMMIT_ID: ${{ github.sha }}\n
dataset_sample\yaml\hashicorp_vagrant\.github\workflows\dev-arch-build.yml
dev-arch-build.yml
YAML
634
0.8
0.05
0
node-utils
159
2025-02-11T11:21:01.854918
MIT
false
6f999b3c290a63b23d44281e0cb21bfd
name: Full Vagrant Development Build\non:\n push:\n branches: 'build-*'\n workflow_dispatch:\n\njobs:\n trigger-build:\n if: github.repository == 'hashicorp/vagrant'\n name: Trigger Vagrant Development Build\n runs-on: ubuntu-latest\n steps:\n - name: Code Checkout\n uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2\n - name: Trigger Development Build\n run: ./.ci/dev-build "${BRANCH}" "${COMMIT_ID}" build\n env:\n HASHIBOT_TOKEN: ${{ secrets.HASHIBOT_TOKEN }}\n BRANCH: ${{ github.ref_name }}\n COMMIT_ID: ${{ github.sha }}\n
dataset_sample\yaml\hashicorp_vagrant\.github\workflows\dev-build.yml
dev-build.yml
YAML
609
0.8
0.05
0
node-utils
801
2023-07-23T14:55:39.847451
BSD-3-Clause
false
f5e24a905acb12218e492254464381cc
name: DEB Vagrant Development Build\non:\n push:\n branches: 'dev-debs-*'\n workflow_dispatch:\n\njobs:\n trigger-build:\n if: github.repository == 'hashicorp/vagrant'\n name: Trigger Vagrant DEB Development Build\n runs-on: ubuntu-latest\n steps:\n - name: Code Checkout\n uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2\n - name: Trigger Development Build\n run: ./.ci/dev-build "${BRANCH}" "${COMMIT_ID}" build-debs\n env:\n HASHIBOT_TOKEN: ${{ secrets.HASHIBOT_TOKEN }}\n BRANCH: ${{ github.ref_name }}\n COMMIT_ID: ${{ github.sha }}\n
dataset_sample\yaml\hashicorp_vagrant\.github\workflows\dev-debs-build.yml
dev-debs-build.yml
YAML
620
0.8
0.05
0
vue-tools
999
2024-12-10T10:40:44.012643
Apache-2.0
false
c6009d8129b811a9b74dc3b5672245c0
name: macOS Vagrant Development Build\non:\n push:\n branches: 'dev-macos-*'\n workflow_dispatch:\n\njobs:\n trigger-build:\n if: github.repository == 'hashicorp/vagrant'\n name: Trigger Vagrant macOS Development Build\n runs-on: ubuntu-latest\n steps:\n - name: Code Checkout\n uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2\n - name: Trigger Development Build\n run: ./.ci/dev-build "${BRANCH}" "${COMMIT_ID}" build-macos\n env:\n HASHIBOT_TOKEN: ${{ secrets.HASHIBOT_TOKEN }}\n BRANCH: ${{ github.ref_name }}\n COMMIT_ID: ${{ github.sha }}\n
dataset_sample\yaml\hashicorp_vagrant\.github\workflows\dev-macos-build.yml
dev-macos-build.yml
YAML
626
0.8
0.05
0
awesome-app
809
2025-05-24T13:37:49.110980
GPL-3.0
false
1275f6214fa0afae106b8a350333f9a6
name: RPM Vagrant Development Build\non:\n push:\n branches: 'dev-rpms-*'\n workflow_dispatch:\n\njobs:\n trigger-build:\n if: github.repository == 'hashicorp/vagrant'\n name: Trigger Vagrant RPM Development Build\n runs-on: ubuntu-latest\n steps:\n - name: Code Checkout\n uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2\n - name: Trigger Development Build\n run: ./.ci/dev-build "${BRANCH}" "${COMMIT_ID}" build-rpms\n env:\n HASHIBOT_TOKEN: ${{ secrets.HASHIBOT_TOKEN }}\n BRANCH: ${{ github.ref_name }}\n COMMIT_ID: ${{ github.sha }}\n
dataset_sample\yaml\hashicorp_vagrant\.github\workflows\dev-rpms-build.yml
dev-rpms-build.yml
YAML
620
0.8
0.05
0
react-lib
597
2024-06-07T19:30:29.678187
BSD-3-Clause
false
ee0c14e362d1b64a1d562b508664f8a9
name: Windows Vagrant Development Build\non:\n push:\n branches: 'dev-windows-*'\n workflow_dispatch:\n\njobs:\n trigger-build:\n if: github.repository == 'hashicorp/vagrant'\n name: Trigger Vagrant Windows Development Build\n runs-on: ubuntu-latest\n steps:\n - name: Code Checkout\n uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2\n - name: Trigger Development Build\n run: ./.ci/dev-build "${BRANCH}" "${COMMIT_ID}" build-windows\n env:\n HASHIBOT_TOKEN: ${{ secrets.HASHIBOT_TOKEN }}\n BRANCH: ${{ github.ref_name }}\n COMMIT_ID: ${{ github.sha }}\n
dataset_sample\yaml\hashicorp_vagrant\.github\workflows\dev-windows-build.yml
dev-windows-build.yml
YAML
634
0.8
0.05
0
react-lib
230
2024-10-28T20:57:08.205344
GPL-3.0
false
de18830d83c3601222b96ce91de2dfb7
name: Start Vagrant Release Process\non:\n workflow_dispatch:\n inputs:\n release_version:\n description: 'Release Version (example: 1.0.0)'\n required: true\n type: string\n\njobs:\n start-release:\n if: github.repository == 'hashicorp/vagrant'\n name: Initiate Release\n runs-on: ubuntu-latest\n steps:\n - name: Code Checkout\n uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2\n with:\n # NOTE: custom token is used so pushed tag will trigger release workflow\n token: ${{ secrets.HASHIBOT_TOKEN }}\n - name: Run initiator\n run: ./.ci/release-initiator "${VERSION}"\n env:\n VERSION: ${{ inputs.release_version }}\n HASHIBOT_TOKEN: ${{ secrets.HASHIBOT_TOKEN }}\n HASHIBOT_USERNAME: ${{ vars.HASHIBOT_USERNAME }}\n HASHIBOT_EMAIL: ${{ vars.HASHIBOT_EMAIL }}\n
dataset_sample\yaml\hashicorp_vagrant\.github\workflows\initiate-release.yml
initiate-release.yml
YAML
895
0.95
0.037037
0.038462
react-lib
154
2025-04-04T20:39:41.258039
BSD-3-Clause
false
f741c3694cda09ba5d8168061285984b
name: 'Lock Threads'\n\non:\n schedule:\n - cron: '50 1 * * *'\n\njobs:\n lock:\n runs-on: ubuntu-latest\n permissions:\n issues: write\n pull-requests: write\n steps:\n - uses: dessant/lock-threads@1bf7ec25051fe7c00bdd17e6a7cf3d7bfb7dc771 # v5.0.1\n with:\n github-token: ${{ github.token }}\n issue-inactive-days: '30'\n pr-inactive-days: '30'\n
dataset_sample\yaml\hashicorp_vagrant\.github\workflows\lock.yml
lock.yml
YAML
392
0.8
0
0
vue-tools
487
2025-04-07T01:55:07.351608
Apache-2.0
false
71b38962ba915037968c6cf78a625625
name: Vagrant Nightly Builds\non:\n schedule:\n - cron: 30 4 * * *\n\njobs:\n trigger-nightly:\n if: github.repository == 'hashicorp/vagrant'\n name: Trigger Nightly Build\n runs-on: ubuntu-latest\n steps:\n - name: Code Checkout\n uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2\n - name: Trigger Nightly Build\n run: ./.ci/nightly-build "${COMMIT_ID}"\n env:\n HASHIBOT_TOKEN: ${{ secrets.HASHIBOT_TOKEN }}\n COMMIT_ID: ${{ github.sha }}\n
dataset_sample\yaml\hashicorp_vagrant\.github\workflows\nightlies.yml
nightlies.yml
YAML
514
0.8
0.055556
0
python-kit
48
2024-01-09T21:53:14.494315
MIT
false
5fd2125a585051de97a127f2c01d1c44
name: Vagrant Release\non:\n push:\n tags: 'v*'\n\njobs:\n trigger-release:\n if: github.repository == 'hashicorp/vagrant'\n name: Trigger Installers Build\n runs-on: ubuntu-latest\n steps:\n - name: Code Checkout\n uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2\n - name: Trigger Build\n run: ./.ci/release "${TAG}" "${COMMIT_ID}"\n env:\n HASHIBOT_TOKEN: ${{ secrets.HASHIBOT_TOKEN }}\n TAG: ${{ github.ref }}\n COMMIT_ID: ${{ github.sha }}\n
dataset_sample\yaml\hashicorp_vagrant\.github\workflows\release.yml
release.yml
YAML
526
0.8
0.052632
0
awesome-app
668
2024-11-15T00:18:51.433467
BSD-3-Clause
false
916c5279d93e953b572b47ddadef4505
# Copyright (c) HashiCorp, Inc.\n# SPDX-License-Identifier: BUSL-1.1\n\nen:\n cloud_command:\n middleware:\n authentication:\n different_target: |-\n Vagrant has detected a custom Vagrant server in use for downloading\n box files. An authentication token is currently set which will be\n added to the box request. If the custom Vagrant server should not\n be receiving the authentication token, please unset it.\n\n Known Vagrant server: %{known_host}\n Custom Vagrant server: %{custom_host}\n\n Press ctrl-c to cancel...\n publish:\n box_save:\n Saving box information...\n upload_provider:\n Uploading provider with file %{file}\n release:\n Releasing box...\n complete:\n Complete! Published %{org}/%{box_name}\n confirm:\n warn: |-\n You are about to publish a box on Vagrant Cloud with the following options:\n box: |-\n %{org}/%{box_name}: (v%{version}) for provider '%{provider_name}'\n private: |-\n Private: true\n release: |-\n Automatic Release: true\n box_url: |-\n Remote Box file: %{url}\n box_description: |-\n Box Description: %{description}\n box_short_desc: |-\n Box Short Description: %{short_description}\n checksum_type: |-\n Checksum Type: %{checksum_type}\n checksum_value: |-\n Checksum Value: %{checksum_value}\n architecture: |-\n Box Architecture: %{architecture}\n default_architecture: |-\n Default Architecture: true\n version_desc: |-\n Version Description: %{version_description}\n continue: |-\n Do you wish to continue? [y/N]\n box:\n show_filter_empty: |-\n No matches found for %{org}/%{box_name}\n Filters applied:\n Architectures: %{architectures}\n Providers: %{providers}\n Versions: %{versions}\n create_success: |-\n Created box %{org}/%{box_name}\n delete_success: |-\n Deleted box %{org}/%{box_name}\n delete_warn: |-\n This will completely remove %{box} from Vagrant Cloud. This cannot be undone.\n update_success: |-\n Updated box %{org}/%{box_name}\n not_found: |-\n Failed to locate requested box: %{org}/%{box_name}\n search:\n no_results: |-\n No results found for `%{query}`\n upload:\n no_url: |-\n No URL was provided to upload the provider\n You will need to run the `vagrant cloud provider upload` command to provide a box\n provider:\n upload: |-\n Uploading box file for '%{org}/%{box_name}' (v%{version}) for provider: '%{provider}'\n upload_success: |-\n Uploaded provider %{provider} on %{org}/%{box_name} for version %{version}\n delete_multiple_architectures: |-\n Multiple architectures detected for %{provider} on %{org}/%{box_name}:\n\n delete_architectures_prompt: |-\n Please enter the architecture name to delete:\n delete_warn: |-\n This will completely remove provider %{provider} with architecture %{architecture}\n on version %{version} from %{box} on Vagrant Cloud. This cannot be undone.\n create_success: |-\n Created provider %{provider} with %{architecture} architecture on %{org}/%{box_name} for version %{version}\n delete_success: |-\n Deleted provider %{provider} with %{architecture} architecture on %{org}/%{box_name}\n for version %{version}\n update_success: |-\n Updated provider %{provider} on %{org}/%{box_name} for version %{version}\n not_found: |-\n Failed to locate %{provider_name} provider for %{org}/%{box_name} on version %{version}\n direct_disable: |-\n Vagrant is automatically disabling direct upload to backend storage.\n Uploads directly to backend storage are currently only supported for\n files 5G in size or smaller. Box file to upload is: %{size}\n version:\n create_success: |-\n Created version %{version} on %{org}/%{box_name} for version %{version}\n delete_success: |-\n Deleted version %{version} on %{org}/%{box_name}\n release_success: |-\n Released version %{version} on %{org}/%{box_name}\n revoke_success: |-\n Revoked version %{version} on %{org}/%{box_name}\n update_success: |-\n Updated version %{version} on %{org}/%{box_name}\n revoke_warn: |-\n This will revoke version %{version} from %{box} from Vagrant Cloud. This cannot be undone.\n release_warn: |-\n This will release version %{version} from %{box} to Vagrant Cloud and be available to download.\n delete_warn: |-\n This will completely remove version %{version} from %{box} from Vagrant Cloud. This cannot be undone.\n not_found: |-\n Failed to locate version %{version} for %{org}/%{box_name}\n errors:\n search:\n fail: |-\n Could not complete search request\n publish:\n fail: |-\n Failed to create box %{org}/%{box_name}\n box:\n create_fail: |-\n Failed to create box %{org}/%{box_name}\n delete_fail: |-\n Failed to delete box %{org}/%{box_name}\n show_fail: |-\n Could not get information about box %{org}/%{box_name}\n update_fail: |-\n Failed to update box %{org}/%{box_name}\n whoami:\n read_error: |-\n Failed to locate account information\n provider:\n create_fail: |-\n Failed to create '%{architecture}' variant of %{provider} provider for version %{version} of the %{org}/%{box_name} box\n update_fail: |-\n Failed to update '%{architecture}' variant of %{provider} provider for version %{version} of the %{org}/%{box_name} box\n delete_fail: |-\n Failed to delete '%{architecture}' variant of %{provider} provider for version %{version} of the %{org}/%{box_name} box\n upload_fail: |-\n Failed to upload '%{architecture}' variant of %{provider} provider for version %{version} of the %{org}/%{box_name} box\n version:\n create_fail: |-\n Failed to create version %{version} on box %{org}/%{box_name}\n delete_fail: |-\n Failed to delete version %{version} on box %{org}/%{box_name}\n release_fail: |-\n Failed to release version %{version} on box %{org}/%{box_name}\n revoke_fail: |-\n Failed to revoke version %{version} on box %{org}/%{box_name}\n update_fail: |-\n Failed to update version %{version} on box %{org}/%{box_name}\n server_error: |-\n The Vagrant Cloud server responded with a not-OK response:\n\n %{errors}\n server_unreachable: |-\n The Vagrant Cloud server is not currently accepting connections. Please check\n your network connection and try again later.\n\n unauthorized: |-\n Invalid username or password. Please try again.\n unexpected_error: |-\n An unexpected error occurred: %{error}\n\n check_logged_in: |-\n You are already logged in.\n check_not_logged_in: |-\n You are not currently logged in. Please run `vagrant login` and provide\n your login information to authenticate.\n command_header: |-\n In a moment we will ask for your username and password to HashiCorp's\n Vagrant Cloud. After authenticating, we will store an access token locally on\n disk. Your login details will be transmitted over a secure connection, and\n are never stored on disk locally.\n\n If you do not have an Vagrant Cloud account, sign up at\n https://www.vagrantcloud.com\n invalid_login: |-\n Invalid username or password. Please try again.\n invalid_token: |-\n Invalid token. Please try again.\n logged_in: |-\n You are now logged in.\n logged_out: |-\n You are logged out.\n token_saved: |-\n The token was successfully saved.\n
dataset_sample\yaml\hashicorp_vagrant\plugins\commands\cloud\locales\en.yml
en.yml
YAML
8,022
0.8
0.121827
0.010582
react-lib
892
2024-11-18T18:08:56.709846
BSD-3-Clause
false
d82b01c54ebf395bfc0c8549feeaf1da
# Copyright (c) HashiCorp, Inc.\n# SPDX-License-Identifier: BUSL-1.1\n\nen:\n port_command:\n details: |-\n The forwarded ports for the machine are listed below. Please note that\n these values may differ from values configured in the Vagrantfile if the\n provider supports automatic port collision detection and resolution.\n empty_ports: |-\n The provider reported there are no forwarded ports for this virtual\n machine. This can be caused if there are no ports specified in the\n Vagrantfile or if the virtual machine is not currently running. Please\n check that the virtual machine is running and try again.\n missing_capability: |-\n The %{provider} provider does not support listing forwarded ports. This is\n most likely a limitation of the provider and not a bug in Vagrant. If you\n believe this is a bug in Vagrant, please search existing issues before\n opening a new one.\n no_matching_port: |-\n The guest is not currently mapping port %{port} to the host machine. Is\n the port configured in the Vagrantfile? You may need to run `vagrant reload`\n if changes were made to the port configuration in the Vagrantfile.\n
dataset_sample\yaml\hashicorp_vagrant\plugins\commands\port\locales\en.yml
en.yml
YAML
1,192
0.8
0.304348
0.090909
react-lib
995
2023-10-31T00:17:34.459765
MIT
false
6c487ec8ade06c70b783e8d111062cda
# Copyright (c) HashiCorp, Inc.\n# SPDX-License-Identifier: BUSL-1.1\n\nen:\n atlas_push:\n errors:\n missing_attribute: |-\n Missing required attribute '%{attribute}'. The Vagrant Atlas Push plugin\n requires you set this attribute. Please set this attribute in your\n Vagrantfile, for example:\n\n config.push.define "atlas" do |push|\n push.%{attribute} = "..."\n end\n missing_token: |-\n Missing required configuration parameter 'token'. This is required for\n Vagrant to securely communicate with your Atlas account.\n\n To generate an access token, run 'vagrant login'.\n uploader_not_found: |-\n Vagrant was unable to find the Atlas uploader CLI. If your Vagrantfile\n specifies the path explicitly with "uploader_path", then make sure that\n path is valid. Otherwise, make sure that you have a valid install of\n Vagrant. If you installed Vagrant outside of the official installers,\n the "atlas-upload" binary must exist on your PATH.\n
dataset_sample\yaml\hashicorp_vagrant\plugins\pushes\atlas\locales\en.yml
en.yml
YAML
1,052
0.95
0.08
0.090909
awesome-app
95
2024-08-11T00:23:25.554905
GPL-3.0
false
59c169f7a45d2fd5f17580afa7b2e075
# Copyright (c) HashiCorp, Inc.\n# SPDX-License-Identifier: BUSL-1.1\n\nen:\n ftp_push:\n errors:\n missing_attribute: |-\n Missing required attribute '%{attribute}'. The Vagrant FTP Push plugin\n requires you set this attribute. Please set this attribute in your\n Vagrantfile, for example:\n\n config.push.define "ftp" do |push|\n push.%{attribute} = "..."\n end\n too_many_files: |-\n The configured directory for Vagrant FTP push contains too many files\n to successfully complete the command. This can be resolved by either\n removing extraneous files from the configured directory, or updating\n the `dir` configuration option to a subdirectory.\n
dataset_sample\yaml\hashicorp_vagrant\plugins\pushes\ftp\locales\en.yml
en.yml
YAML
732
0.95
0.105263
0.117647
python-kit
287
2025-01-23T20:16:44.717376
BSD-3-Clause
false
e03e0f9d5d54ddf97a0bebc85e9531b0
# Copyright (c) HashiCorp, Inc.\n# SPDX-License-Identifier: BUSL-1.1\n\nen:\n heroku_push:\n errors:\n command_failed: |-\n The following command exited with a non-zero exit status:\n\n %{cmd}\n\n stdout: %{stdout}\n stderr: %{stderr}\n git_not_found: |-\n The Git binary '%{bin}' could not be found. Please ensure you\n have downloaded and installed the latest version of Git:\n\n https://git-scm.com/downloads\n missing_attribute: |-\n Missing required attribute '%{attribute}'. The Vagrant Heroku Push\n plugin requires you set this attribute. Please set this attribute in\n your Vagrantfile, for example:\n\n config.push.define "heroku" do |push|\n push.%{attribute} = "..."\n end\n not_a_git_repo: |-\n The following path is not a valid Git repository:\n\n %{path}\n\n Please ensure you are working in the correct directory. In order to use\n the Vagrant Heroku Push plugin, you must have a git repository.\n
dataset_sample\yaml\hashicorp_vagrant\plugins\pushes\heroku\locales\en.yml
en.yml
YAML
1,049
0.95
0.030303
0.076923
react-lib
208
2024-11-06T21:04:23.553625
BSD-3-Clause
false
5fdf26bc7c97a547144a746588d00037
# Copyright (c) HashiCorp, Inc.\n# SPDX-License-Identifier: BUSL-1.1\n\nen:\n local_exec_push:\n errors:\n cannot_specify_script_and_inline: |-\n You have specified both the 'script' and 'inline' attributes for the\n Vagrant Local Exec Push plugin. You may only specify one of these\n attributes.\n command_failed: |-\n The following command exited with a non-zero exit status:\n\n %{cmd}\n\n stdout: %{stdout}\n stderr: %{stderr}\n missing_attribute: |-\n Missing required attribute '%{attribute}'. The Vagrant Local Exec Push\n plugin requires you set this attribute. Please set this attribute in\n your Vagrantfile, for example:\n\n config.push.define "local-exec" do |push|\n push.%{attribute} = "..."\n end\n args_bad_type: "Local-exec push `args` must be a string or array."
dataset_sample\yaml\hashicorp_vagrant\plugins\pushes\local-exec\locales\en.yml
en.yml
YAML
888
0.95
0.08
0.090909
awesome-app
190
2024-06-07T06:34:44.731394
GPL-3.0
false
6ea04329c74c6da0bc9ed1a599cadd7b
# Copyright (c) HashiCorp, Inc.\n# SPDX-License-Identifier: BUSL-1.1\n\nen:\n vagrant_ps:\n detecting: |-\n Detecting if a remote PowerShell connection can be made with the guest...\n resetting: |-\n Resetting WinRM TrustedHosts to their original value.\n\n errors:\n elevated_no_command: |-\n A command must be provided when the --elevated flag is provided for\n the powershell command. Please provide a command when using the\n --elevated flag and try again.\n\n host_unsupported: |-\n Your host does not support PowerShell. A remote PowerShell connection\n can only be made from a windows host.\n\n ps_remoting_undetected: |-\n Unable to establish a remote PowerShell connection with the guest.\n Check if the firewall rules on the guest allow connections to the\n Windows remote management service.\n\n powershell_error: |-\n An error occurred while executing a PowerShell script. This error\n is shown below. Please read the error message and see if this is\n a configuration error with your system. If it is not, then please\n report a bug.\n\n Script: %{script}\n Error:\n\n %{stderr}\n
dataset_sample\yaml\hashicorp_vagrant\templates\locales\command_ps.yml
command_ps.yml
YAML
1,203
0.8
0.171429
0.071429
awesome-app
109
2025-01-05T09:18:58.309600
BSD-3-Clause
false
fb3bbe18a2a73bed3d1bfa8e3271dec6
# Copyright (c) HashiCorp, Inc.\n# SPDX-License-Identifier: BUSL-1.1\n\nen:\n vagrant_rdp:\n detecting: |-\n Detecting RDP info...\n connecting: |-\n Vagrant will now launch your RDP client with the connection parameters\n above. If the connection fails, verify that the information above is\n correct. Additionally, make sure the RDP server is configured and\n running in the guest machine (it is disabled by default on Windows).\n Also, verify that the firewall is open to allow RDP connections.\n\n errors:\n host_unsupported: |-\n Vagrant doesn't support running an RDP client on your\n host OS.\n\n If you wish for the OS you're running to support launching\n an RDP client, please contribute this functionality back\n into Vagrant. At the very least, open an issue on how it\n could be done and we can handle the integration.\n rdp_undetected: |-\n RDP connection information for this machine could not be\n detected. This is typically caused when we can't find the IP\n or port to connect to for RDP. Please verify you're forwarding\n an RDP port and that your machine is accessible.\n
dataset_sample\yaml\hashicorp_vagrant\templates\locales\command_rdp.yml
command_rdp.yml
YAML
1,184
0.95
0.107143
0.08
react-lib
547
2023-12-11T13:40:00.910538
Apache-2.0
false
5bccbd5cd0cc0428e93b8bcd316914e8
# Copyright (c) HashiCorp, Inc.\n# SPDX-License-Identifier: BUSL-1.1\n\nen:\n vagrant_winrm:\n errors:\n authentication_failed: |-\n An authorization error occurred while connecting to WinRM.\n\n User: %{user}\n Endpoint: %{endpoint}\n Message: %{message}\n winrm_bad_exit_status: |-\n The following WinRM command responded with a non-zero exit status.\n Vagrant assumes that this means the command failed!\n\n %{command}\n\n Stdout from the command:\n\n %{stdout}\n\n Stderr from the command:\n\n %{stderr}\n execution_error: |-\n An error occurred executing a remote WinRM command.\n\n Shell: %{shell}\n Command: %{command}\n Message: %{message}\n invalid_shell: |-\n %{shell} is not a supported type of Windows shell.\n invalid_transport: |-\n %{transport} is not a supported WinRM transport.\n ssl_error: |-\n An SSL error occurred while connecting to WinRM. This usually\n occurs when you are using a self-signed certificate and have\n not set the WinRM `ssl_peer_verification` config setting to false.\n\n Message: %{message}\n\n winrm_not_ready: |-\n The box is not able to report an address for WinRM to connect to yet.\n WinRM cannot access this Vagrant environment. Please wait for the\n Vagrant environment to be running and try again.\n winrm_file_transfer_error: |-\n Failed to transfer a file between the host and guest\n\n From: %{from}\n To: %{to}\n Message: %{message}\n\n connection_refused: |-\n WinRM connection was refused! This usually happens if the VM failed to\n boot properly. Some steps to try to fix this: First, try reloading your\n VM with `vagrant reload`, since a simple restart sometimes fixes things.\n If that doesn't work, destroy your VM and recreate it with a `vagrant destroy`\n followed by a `vagrant up`. If that doesn't work, contact a Vagrant\n maintainer (support channels listed on the website) for more assistance.\n connection_reset: |-\n WinRM connection was reset! This usually happens when the machine is\n taking too long to reboot. First, try reloading your machine with\n `vagrant reload`, since a simple restart sometimes fixes things.\n If that doesn't work, destroy your machine and recreate it with\n a `vagrant destroy` followed by a `vagrant up`. If that doesn't work,\n contact support.\n connection_timeout: |-\n Vagrant timed out while attempting to connect via WinRM. This usually\n means that the VM booted, but there are issues with the WinRM configuration\n or network connectivity issues. Please try to `vagrant reload` or\n `vagrant up` again.\n disconnected: |-\n The WinRM connection was unexpectedly closed by the remote end. This\n usually indicates that WinRM within the guest machine was unable to\n properly start up. Please boot the VM in GUI mode to check whether\n it is booting properly.\n no_route: |-\n While attempting to connect with WinRM, a "no route to host" (EHOSTUNREACH)\n error was received. Please verify your network settings are correct\n and try again.\n host_down: |-\n While attempting to connect with WinRM, a "host is down" (EHOSTDOWN)\n error was received. Please verify your WinRM settings are correct\n and try again.\n
dataset_sample\yaml\hashicorp_vagrant\templates\locales\comm_winrm.yml
comm_winrm.yml
YAML
3,487
0.8
0.164706
0.027397
awesome-app
380
2024-05-11T15:07:47.196004
MIT
false
33d8be07f25fba8256710f9ae7a71c76
# Copyright (c) HashiCorp, Inc.\n# SPDX-License-Identifier: BUSL-1.1\n\nen:\n vagrant_windows:\n errors:\n public_key_directory_failure: |-\n Vagrant failed to properly discover the correct paths for the\n temporary directory and user profile directory on the Windows\n guest. Please ensure the guest is properly configured.\n network_winrm_required: |-\n Configuring networks on Windows requires the communicator to be\n set to WinRM. To do this, add the following to your Vagrantfile:\n\n config.vm.communicator = "winrm"\n\n Note that the Windows guest must be configured to accept insecure\n WinRM connections, and the WinRM port must be forwarded properly from\n the guest machine. This is not always done by default.\n rename_computer_failed: |-\n Renaming the Windows guest failed. Most often this is because you've\n specified a FQDN instead of just a host name.\n\n Ensure the new guest name is properly formatted. Standard names may\n contain letters (a-z, A-Z), numbers (0-9), and hyphens (-), but no\n spaces or periods (.). The name may not consist entirely of digits.\n
dataset_sample\yaml\hashicorp_vagrant\templates\locales\guest_windows.yml
guest_windows.yml
YAML
1,176
0.95
0.038462
0.090909
awesome-app
865
2024-03-10T05:27:58.510497
Apache-2.0
false
f7ffdbe661116f275b9bd7166f9b3f3e
# Copyright (c) HashiCorp, Inc.\n# SPDX-License-Identifier: BUSL-1.1\n\nen:\n docker_provider:\n already_built: |-\n Image is already built from the Dockerfile. `vagrant reload` to rebuild.\n build_image_destroy: |-\n Removing built image...\n build_image_destroy_in_use: |-\n Build image couldn't be destroyed because the image is in use. The\n image must be destroyed manually in the future if you want to remove\n it.\n build_image_invalid: |-\n Build image no longer exists. Rebuilding...\n building: |-\n Building the container from a Dockerfile...\n building_git_repo: |-\n Building the container from the git repository: %{repo}...\n building_named_dockerfile: |-\n Building the container from the named Dockerfile: %{file}...\n building_git_repo_named_dockerfile: |-\n Building the container from the named Dockerfile: %{file} in the git repository: %{repo}...\n creating: |-\n Creating the container...\n created: |-\n Container created: %{id}\n host_machine_disabling_folders: |-\n Removing synced folders...\n host_machine_forwarded_ports: |-\n Warning: When using a remote Docker host, forwarded ports will NOT be\n immediately available on your machine. They will still be forwarded on\n the remote machine, however, so if you have a way to access the remote\n machine, then you should be able to access those ports there. This is\n not an error, it is only an informational message.\n host_machine_needed: |-\n Docker host is required. One will be created if necessary...\n host_machine_ready: |-\n Docker host VM is already ready.\n host_machine_starting: |-\n Vagrant will now create or start a local VM to act as the Docker\n host. You'll see the output of the `vagrant up` for this VM below.\n host_machine_syncing_folders: |-\n Syncing folders to the host VM...\n logging_in: |-\n Logging in to Docker server...\n logs_host_state_unknown: |-\n This container requires a host VM, and the state of that VM\n is unknown. Run `vagrant up` to verify that the container and\n its host VM is running, then try again.\n network_bridge_gateway_invalid: |-\n The provided gateway IP address is invalid (%{gateway}). Please\n provide a valid IP address.\n network_bridge_gateway_outofbounds: |-\n The provided gateway IP (%{gateway}) is not within the defined\n subnet (%{subnet}). Please provide an IP address within the\n defined subnet.\n network_bridge_gateway_request: |-\n Gateway IP address for %{interface} interface [%{default_gateway}]:\n network_bridge_iprange_info: |-\n When an explicit address is not provided to a container attached\n to this bridged network, docker will supply an address to the\n container. This is independent of the local DHCP service that\n may be available on the network.\n network_bridge_iprange_invalid: |-\n The provided IP address range is invalid (%{range}). Please\n provide a valid range.\n network_bridge_iprange_outofbounds: |-\n The provided IP address range (%{range}) is not within the\n defined subnet (%{subnet}). Please provide an address range\n within the defined subnet.\n network_bridge_iprange_request: |-\n Available address range for assignment on %{interface} interface [%{default_range}]:\n network_create: |-\n Creating and configuring docker networks...\n network_connect: |-\n Enabling network interfaces...\n network_destroy: |-\n Removing network %{network_name} ...\n not_created_skip: |-\n Container not created. Skipping.\n not_docker_provider: |-\n Not backed by Docker provider. Skipping.\n pull: |-\n Pulling image '%{image}'...\n run_command_required: |-\n `vagrant docker-run` requires a command to execute. This command\n must be specified after a `--` in the command line. This is used\n to separate possible machine names and options from the actual\n command to execute. An example is shown below:\n\n vagrant docker-run web -- rails new .\n\n running: |-\n Container is starting. Output will stream in below...\n running_detached: |-\n Container is started detached.\n ssh_through_host_vm: |-\n SSH will be proxied through the Docker virtual machine since we're\n not running Docker natively. This is just a notice, and not an error.\n subnet_exists: |-\n A network called '%{network_name}' using subnet '%{subnet}' is already in use.\n Using '%{network_name}' instead of creating a new network...\n synced_folders_changed: |-\n Vagrant has noticed that the synced folder definitions have changed.\n With Docker, these synced folder changes won't take effect until you\n destroy the container and recreate it.\n waiting_for_running: |-\n Waiting for container to enter "running" state...\n volume_path_not_expanded: |-\n Host path `%{host}` exists as a `volumes` key and is a folder on disk. Vagrant\n will not expand this key like it used to and instead leave it as is defined.\n If this folder is intended to be used, make sure its full path is defined\n in your `volumes` config. More information can be found on volumes in the\n docker compose documentation.\n\n messages:\n destroying: |-\n Deleting the container...\n not_created: |-\n The container hasn't been created yet.\n not_created_original: |-\n The original container hasn't been created yet. Run `vagrant up`\n for this machine first.\n not_running: |-\n The container is not currently running.\n preparing: |-\n Preparing to start the container...\n provision_no_ssh: |-\n Provisioners will not be run since container doesn't support SSH.\n will_not_destroy: |-\n The container will not be destroyed, since the confirmation was declined.\n starting: |-\n Starting container...\n stopping: |-\n Stopping container...\n container_ready: |-\n Container started and ready for use!\n not_provisioning: |-\n The following provisioners require a communicator, though none is available (this container does not support SSH).\n Not running the following provisioners:\n - %{provisioners}\n\n status:\n host_state_unknown: |-\n The host VM for the Docker containers appears to not be running\n or is currently inaccessible. Because of this, we can't determine\n the state of the containers on that host. Run `vagrant up` to\n bring up the host VM again.\n not_created: |-\n The environment has not yet been created. Run `vagrant up` to\n create the environment. If a machine is not created, only the\n default provider will be shown. So if a provider is not listed,\n then the machine is not created for that environment.\n preparing: |-\n Vagrant is preparing to start this Docker container. Run `vagrant up`\n to continue.\n running: |-\n The container is created and running. You can stop it using\n `vagrant halt`, see logs with `vagrant docker-logs`, and\n kill/destroy it with `vagrant destroy`.\n stopped: |-\n The container is created but not running. You can run it again\n with `vagrant up`. If the container always goes to "stopped"\n right away after being started, it is because the command being\n run exits and doesn't keep running.\n\n errors:\n build_error: |-\n Vagrant received unknown output from `docker build` while building a container: %{result}\n compose_lock_timeout: |-\n Vagrant encountered a timeout waiting for the docker compose driver\n to become available. Please try to run your command again. If you\n continue to experience this error it may be resolved by disabling\n parallel execution.\n docker_compose_not_installed: |-\n Vagrant has been instructed to use to use the Compose driver for the\n Docker plugin but was unable to locate the `docker-compose` executable.\n Ensure that `docker-compose` is installed and available on the PATH.\n not_created: |-\n The container hasn't been created yet.\n not_running: |-\n The container is not currently running.\n communicator_non_docker: |-\n The "docker_hostvm" communicator was specified on a machine that\n is not provided by the Docker provider. This is a bug with your\n Vagrantfile. Please contact the creator of your Vagrant environment\n and notify them to not use this communicator for anything except the\n "docker" provider.\n config:\n both_build_and_image_and_git: |-\n Only one of "build_dir", "git_repo" or "image" can be set\n build_dir_invalid: |-\n "build_dir" must exist and contain a Dockerfile\n git_repo_invalid: |-\n "git_repo" must be a valid repository URL\n build_dir_or_image: |-\n One of "build_dir", "git_repo" or "image" must be set\n compose_configuration_hash: |-\n "compose_configuration" must be a hash\n compose_force_vm: |-\n Docker compose is not currently supported from within proxy VM.\n git_repo_invalid: |-\n "git_repo" must be a valid git URL\n create_args_array: |-\n "create_args" must be an array\n invalid_link: |-\n Invalid link (should be 'name:alias'): "%{link}"\n invalid_vagrantfile: |-\n "vagrant_vagrantfile" must point to a Vagrantfile that exists.\n docker_provider_nfs_without_privileged: |-\n You've configured a NFS synced folder but didn't enable privileged\n mode for the container. Please set the `privileged` option to true\n on the provider block from your Vagrantfile, recreate the container\n and try again.\n docker_provider_image_not_configured: |-\n The base Docker image has not been set for the '%{name}' VM!\n execute_error: |-\n A Docker command executed by Vagrant didn't complete successfully!\n The command run along with the output from the command is shown\n below.\n\n Command: %{command}\n\n Stderr: %{stderr}\n\n Stdout: %{stdout}\n exec_command_required: |-\n The "docker-exec" command requires a command to execute. This command\n must be specified after a "--" in the command line. This is used to\n separate machine name and options from the actual command to execute.\n An example is show below:\n\n $ vagrant docker-exec -t nginx -- bash\n\n host_vm_communicator_not_ready: |-\n The Docker provider was able to bring up the host VM successfully\n but the host VM is still reporting that SSH is unavailable. This\n sometimes happens with certain providers due to bugs in the\n underlying hypervisor, and can be fixed with a `vagrant reload`.\n The ID for the host VM is shown below for convenience.\n\n If this does not fix it, please verify that the host VM provider\n is functional and properly configured.\n\n Host VM ID: %{id}\n network_address_invalid: |-\n The configured network address is not valid within the configured\n subnet of the defined network. Please update the network settings\n and try again.\n\n Configured address: %{address}\n Network name: %{network_name}\n network_address_required: |-\n An IP address is required if not using `type: "dhcp"` or not specifying a `subnet`.\n network_invalid_option: |-\n Invalid option given for docker network for guest "%{container}". Must specify either\n a `subnet` or use `type: "dhcp"`.\n network_name_missing: |-\n The Docker provider is unable to connect the container to the\n defined network due to a missing network name. Please validate\n your configuration and try again.\n\n Container: %{container}\n Network Number: %{index}\n network_name_undefined: |-\n The Docker provider was unable to configure networking using the\n provided network name `%{network_name}`. Please ensure the network\n name is correct and exists, then try again.\n network_no_interfaces: |-\n The Docker provider was unable to list any available interfaces to bridge\n the public network with.\n network_subnet_invalid: |-\n The configured network subnet is not valid for the defined network.\n Please update the network settings and try again.\n\n Configured subnet: %{subnet}\n Network name: %{network_name}\n package_not_supported: |-\n The "package" command is not supported with the Docker provider.\n If you'd like to commit or push your Docker container, please SSH\n into the host VM (if there is one), and run `docker commit` and\n so on manually.\n state_not_running: |-\n The container never entered the "running" state, or entered it\n briefly but reverted back to another state. Please verify that\n the configuration of the container is correct.\n\n If you meant for this container to not remain running, please\n set the Docker provider configuration "remains_running" to "false":\n\n config.vm.provider "docker" do |d|\n d.remains_running = false\n end\n\n state_stopped: |-\n The container started either never left the "stopped" state or\n very quickly reverted to the "stopped" state. This is usually\n because the container didn't execute a command that kept it running,\n and usually indicates a misconfiguration.\n\n If you meant for this container to not remain running, please\n set the Docker provider configuration "remains_running" to "false":\n\n config.vm.provider "docker" do |d|\n d.remains_running = false\n end\n\n suspend_not_supported: |-\n The "suspend" command is not supported with the Docker provider.\n Docker containers don't natively support suspend. If you're using\n a host machine, you can suspend the host machine by finding it\n in `vagrant global-status` and using `vagrant suspend <id>`.\n synced_folder_non_docker: |-\n The "docker" synced folder type can't be used because the provider\n in use is not Docker. This synced folder type only works with the\n Docker provider. The provider this machine is using is: %{provider}\n vagrantfile_not_found: |-\n The configured host VM Vagrantfile could not be found. Please fix\n the Vagrantfile for this Docker environment to point to a valid\n host VM.\n
dataset_sample\yaml\hashicorp_vagrant\templates\locales\providers_docker.yml
providers_docker.yml
YAML
14,732
0.95
0.109034
0.006689
react-lib
293
2024-05-13T05:41:05.895774
BSD-3-Clause
false
9ee37f29a991f3b3ff3045f21738a3c5
# Copyright (c) HashiCorp, Inc.\n# SPDX-License-Identifier: BUSL-1.1\n\nen:\n vagrant_hyperv:\n choose_switch: |-\n Please choose a switch to attach to your Hyper-V instance.\n If none of these are appropriate, please open the Hyper-V manager\n to create a new virtual switch.\n message_already_running: |-\n Hyper-V instance already running.\n message_not_created: |-\n VM not created. Moving on...\n message_not_running: |-\n Hyper-V machine isn't running. Can't SSH in!\n\n config:\n invalid_auto_start_action: |-\n The requested auto start action for the Hyper-V VM is not a\n valid action. Please provide a valid action and run the command\n again.\n\n Received: %{action}\n Allowed: %{allowed_actions}\n invalid_auto_stop_action: |-\n The requested auto stop action for the Hyper-V VM is not a\n valid action. Please provide a valid action and run the command\n again.\n\n Received: %{action}\n Allowed: %{allowed_actions}\n invalid_integration_services_type: |-\n Invalid type provided for `vm_integration_services`. Type received\n is `%{received}` but `Hash` was expected.\n invalid_integration_services_entry: |-\n The `%{entry_name}` entry in the `vm_integration_services` is set\n to an unexpected value.\n\n Received: %{entry_value}\n Allowed: true, false\n differencing_disk_deprecation: |-\n The `differencing_disk` configuration option is deprecated and should\n no longer be used. The `linked_clone` configuration option should\n be used instead.\n errors:\n admin_required: |-\n The Hyper-V provider requires that Vagrant be run with\n administrative privileges. This is a limitation of Hyper-V itself.\n Hyper-V requires administrative privileges for management\n commands. Please restart your console with administrative\n privileges and try again.\n box_invalid: |-\n The box you're using with the Hyper-V provider ('%{name}')\n is invalid. A Hyper-V box should contain both a\n "Virtual Machines" and a "Virtual Hard Disks" folder that are\n created as part of exporting a Hyper-V machine.\n\n Within these directories, Vagrant expects to find the\n virtual machine configuration as well as the root hard disk.\n\n The box you're attempting to use is missing one or both of\n these directories or does not contain the files expected. Verify\n that you added the correct box. If this problem persists,\n please contact the creator of the box for assistance.\n ip_addr_timeout: |-\n Hyper-V failed to determine your machine's IP address within the\n configured timeout. Please verify the machine properly booted and\n the network works. To do this, open the Hyper-V manager, find your\n virtual machine, and connect to it.\n\n The most common cause for this error is that the running virtual\n machine doesn't have the latest Hyper-V integration drivers. Please\n research for your operating system how to install these in order\n for the VM to properly communicate its IP address to Hyper-V.\n no_switches: |-\n There are no virtual switches created for Hyper-V! Please open\n the Hyper-V Manager, go to the "Virtual Switch Manager", and create\n at least one virtual switch.\n\n A virtual switch is required for Vagrant to create a Hyper-V\n machine that is connected to a network so it can access it.\n\n For more help, please see the documentation on the Vagrant website\n for Hyper-V.\n powershell_features_disabled: |-\n The Hyper-V cmdlets for PowerShell are not available! Vagrant\n requires these to control Hyper-V. Please enable them in the\n "Windows Features" control panel and try again.\n powershell_error: |-\n An error occurred while executing a PowerShell script. This error\n is shown below. Please read the error message and see if this is\n a configuration error with your system. If it is not, then please\n report a bug.\n\n Script: %{script}\n Error:\n\n %{stderr}\n powershell_required: |-\n The Vagrant Hyper-V provider requires PowerShell to be available.\n Please make sure "powershell.exe" is available on your PATH.\n windows_required: |-\n The Hyper-V provider only works on Windows. Please try to\n use another provider.\n system_access_required: |-\n Hyper-V access check has failed for the configured destination. This\n is usually caused by running on a non-system drive which is missing\n required permissions. Running the following command may resolve the\n problem:\n\n icacls.exe %{root_dir} /T /Q /grant "NT AUTHORITY\SYSTEM:(IO)(CI)(F)"\n
dataset_sample\yaml\hashicorp_vagrant\templates\locales\providers_hyperv.yml
providers_hyperv.yml
YAML
4,897
0.95
0.198198
0.020408
awesome-app
436
2023-08-29T18:18:08.005917
Apache-2.0
false
5f3bfbcebf0ce8ee1a0f2e0998e355ea