Coder Social home page Coder Social logo

Comments (9)

prince20112003 avatar prince20112003 commented on July 28, 2024 1

okkkkk. it worked. thank you so much.

from argus.

JosephKav avatar JosephKav commented on July 28, 2024

it says that it failed converting "X" to a semantic version. If all versions are in this style, consider adding url_commands to get the version into the style of 'MAJOR.MINOR.PATCH' (https://semver.org/), or disabling semantic versioning (globally with defaults.service.semantic_versioning or just for this service with the semantic_versioning var)

It doesn't look like you have that regex in a url_command as I get a variation of that message on a query with only that URL. It's failing without that as it's trying to put the whole page content as the version. But HTML isn't a version number, so it fails the semantic version check

from argus.

prince20112003 avatar prince20112003 commented on July 28, 2024

thanks for the quick response. but can you explain a bit in depth?

from argus.

JosephKav avatar JosephKav commented on July 28, 2024

You've got it querying that URL to get a version number. You can add url_commands to extract specific text from that page, e.g. RegEx.
I don't know what version you want, but if you wanted the GMP version, you could add a url_command with RegEx GMP.*Version ([\d.]+)

  Greenbone:
    options:
      semantic_versioning: false
    latest_version:
      type: url
      url: https://www.greenbone.net/en/documents/
      url_commands:
        - type: regex
          regex: GMP.*Version ([\d.]+)

If you just want the 22.04 version, you could go with Greenbone OS ([\d.]+) as the regex

from argus.

prince20112003 avatar prince20112003 commented on July 28, 2024

not working. i got this error. create "" failed (fetches failed)
latest_version - regex "regex" not matched on content for version.

from argus.

JosephKav avatar JosephKav commented on July 28, 2024

What is your YAML? And I noticed you opened an issue in greenbone/actions#1019. I'd say to close that one as it's an issue you're experiencing with Argus

from argus.

JosephKav avatar JosephKav commented on July 28, 2024

Screenshot_20240212_201036_Firefox Nightly
This is all you'd need on the WebUI

from argus.

prince20112003 avatar prince20112003 commented on July 28, 2024

image.docx

from argus.

JosephKav avatar JosephKav commented on July 28, 2024

You're putting the regex inside the Require block. That's more for adding other things that are required before you treat the version as available. e.g. if you monitored release-argus/Argus, you could add RegEx Content of Argus-{{ version }}.linux-arm64. This would require that binary to be available on the GitHub release.

Add a URL Command by pressing the + above the Require card (and remove both the 'RegEx Content' and 'RegEx Version'


This require block more helps you filter out versions that don't meet extra criteria (such as having an arm release for example). So if the page had multiple versions, Argus is able to return the latest version that satisfies this extra RegEx

from argus.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.