Skip to content

Commit

Permalink
Rakefile Fix Pt 2 (#1947)
Browse files Browse the repository at this point in the history
* update

* Update active policy list (#1946)

Co-authored-by: XOmniverse <XOmniverse@users.noreply.github.com>

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: XOmniverse <XOmniverse@users.noreply.github.com>
  • Loading branch information
3 people authored Mar 21, 2024
1 parent 3b006f7 commit 7b1086e
Show file tree
Hide file tree
Showing 3 changed files with 954 additions and 472 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/update-active-policy-list.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ jobs:
bundle install --without documentation --path bundle
bundle exec rake generate_policy_list
cp dist/active-policy-list.json data/active_policy_list/active_policy_list.json
env:
GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Create Pull Request
id: cpr
Expand Down
3 changes: 2 additions & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ task :generate_policy_list do
# Preparation for getting information from Github repository
repo_name = "flexera-public/policy_templates"
branch = "master"
github_client = Octokit::Client.new
github_api_token = `echo $GITHUB_API_TOKEN`.strip
github_client = Octokit::Client.new(access_token: github_api_token)

FileUtils.mkdir_p 'dist'
file_list = []
Expand Down
Loading

0 comments on commit 7b1086e

Please sign in to comment.