Skip to content

Commit

Permalink
Switch to releases CDN (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
frasdav committed Sep 6, 2024
1 parent 9a2c67c commit aa96d5f
Show file tree
Hide file tree
Showing 12 changed files with 38 additions and 36 deletions.
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* text=auto
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Sheriff Azure DevOps Extension Changelog

## 0.0.7

* `InstallSheriffCLI` task updated to download Sheriff from releases.frontierhq.com.

## 0.0.6

* `SheriffPlan` and `SheriffApply` tasks updated to support workload identity federation authentication.
Expand Down
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ desired state configuration.
Installation
------------

The extension is available in the `Visual Studio Marketplace <https://marketplace.visualstudio.com/items?itemName=gofrontier.Sheriff>`_.
The extension is available in the `Visual Studio Marketplace <https://marketplace.visualstudio.com/items?itemName=frontier.Sheriff>`_.

-----
Usage
Expand Down
Binary file modified images/extension-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified images/large-extension-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 2 additions & 3 deletions overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@
## About

This is an Azure DevOps extension that provides tasks for installing and running
[Sheriff](https://github.com/frontierhq/sheriff), a command line tool to
manage Microsoft Entra Privileged Identity Management (Microsoft Entra PIM)
using desired state configuration.
[Sheriff](https://frontierhq.com/products/sheriff), a command line tool to configure
and operate Microsoft Entra Privileged Identity Management (PIM) in automation.

## Usage

Expand Down
42 changes: 21 additions & 21 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"rimraf": "^5.0.1",
"shelljs": "^0.8.5",
"tempdir": "^2.0.0",
"tfx-cli": "^0.15.0",
"tfx-cli": "^0.17.0",
"winston": "^3.10.0"
},
"devDependencies": {
Expand Down
4 changes: 2 additions & 2 deletions tasks/InstallSheriffCLI/InstallSheriffCLIV0/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion tasks/InstallSheriffCLI/InstallSheriffCLIV0/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "install-sheriff-cli-task",
"version": "0.0.3",
"version": "0.0.4",
"description": "",
"scripts": {
"test": "run-p test:*",
Expand Down
6 changes: 2 additions & 4 deletions tasks/InstallSheriffCLI/InstallSheriffCLIV0/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ const { promisify } = require('util');

const finished = promisify(stream.finished);

const sas = 'sp=r&st=2024-01-01T00:00:00Z&se=2049-12-31T23:59:59Z&spr=https&sv=2022-11-02&sr=c&sig=Obnq5FJma2NJlE1k0PykIYlHbBcTA1yeba3YRLV6rmw%3D';

async function run() {
try {
const version = tl.getInput('version', true);
Expand Down Expand Up @@ -43,9 +41,9 @@ async function run() {

let downloadUrl;
if (version === 'latest') {
downloadUrl = `https://sa0she0prd0uks0releases.blob.core.windows.net/sheriff/latest/sheriff_${os}_${platform}.${fileExtension}?${sas}`;
downloadUrl = `https://releases.frontierhq.com/sheriff/latest/sheriff_${os}_${platform}.${fileExtension}`;
} else {
downloadUrl = `https://sa0she0prd0uks0releases.blob.core.windows.net/sheriff/${version}/sheriff_${os}_${platform}.${fileExtension}?${sas}`;
downloadUrl = `https://releases.frontierhq.com/sheriff/${version}/sheriff_${os}_${platform}.${fileExtension}`;
}
const downloadPath = path.join(agentTempDirectory, `sheriff_${os}_${platform}.${fileExtension}`);
const toolDirPath = `${agentToolsDirectory}/sheriff/${version}/${platform}`;
Expand Down
6 changes: 3 additions & 3 deletions vss-extension.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"manifestVersion": 1,
"id": "Sheriff",
"name": "Sheriff",
"publisher": "gofrontier",
"publisher": "frontierhq",
"version": "",
"public": false,
"targets": [
Expand All @@ -13,7 +13,7 @@
"categories": [
"Azure Pipelines"
],
"description": "Provides tasks to operate Sheriff, a command line tool to manage Microsoft Entra Privileged Identity Management (Microsoft Entra PIM) using desired state configuration.",
"description": "Provides tasks to operate Sheriff, a command line tool to configure and operate Microsoft Entra Privileged Identity Management (PIM) in automation.",
"tags": [
"Microsoft Azure",
"Microsoft Entra ID",
Expand All @@ -30,7 +30,7 @@
},
"links": {
"learn": {
"uri": "https://github.com/frontierhq/sheriff"
"uri": "https://frontierhq.com/products/sheriff"
}
},
"icons": {
Expand Down

0 comments on commit aa96d5f

Please sign in to comment.