Skip to content

Commit

Permalink
chore(github_actions): push-to-winget: permissions: write-all (#1133)
Browse files Browse the repository at this point in the history
Trying to fix the issue of: `ERROR: Resource not accessible by
integration` -
https://github.com/open-component-model/ocm/actions/runs/12006779990/job/33466305628

I doubt that it will work...
see: microsoft/winget-create#470

Maybe we need classical github-token see:

pulumi/pulumi-winget#22 (comment)
  • Loading branch information
hilmarf authored Nov 25, 2024
1 parent f5a1cd2 commit 3133edf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/publish-to-other-than-github.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,8 @@ jobs:
with:
app_id: ${{ secrets.OCMBOT_APP_ID }}
private_key: ${{ secrets.OCMBOT_PRIV_KEY }}
permissions: |
{"contents":"write","pull_requests":"write"}
- name: Checkout
uses: actions/checkout@v4
with:
Expand All @@ -150,6 +152,7 @@ jobs:
https://github.com/open-component-model/ocm/releases/download/v${{ env.RELEASE_VERSION }}/ocm-${{ env.RELEASE_VERSION }}-windows-arm64.zip `
--version ${{ env.RELEASE_VERSION }} `
Open-Component-Model.ocm-cli
push-to-website:
name: Update OCM Website
runs-on: ubuntu-latest
Expand All @@ -163,4 +166,4 @@ jobs:
token: ${{ steps.generate_token.outputs.token }}
repository: open-component-model/ocm-website
event-type: ocm-cli-release
client-payload: '{"tag": "${{ env.RELEASE_VERSION }}"}'
client-payload: '{"tag": "${{ env.RELEASE_VERSION }}"}'
2 changes: 1 addition & 1 deletion examples/lib/tour/07-resource-management/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ function before finishing.
The final output of this example looks like:

```yaml
versions for component ocm.software/ocmcli: 0.1.0-alpha.2, 0.1.0-dev, 0.3.0-dev, 0.3.0-rc.2, 0.3.0-rc.3, 0.3.0, 0.4.0-dev, 0.4.0, 0.4.1, 0.4.2, 0.4.3, 0.5.0, 0.6.0, 0.7.0, 0.8.0, 0.9.0, 0.10.0, 0.11.0, 0.12.0, 0.12.1, 0.13.0, 0.14.0, 0.15.0, 0.16.0, 0.16.1, 0.16.2, 0.17.0-rc.1, 0.17.0, 0.18.0-rc.1, 0.18.0-rc.2
versions for component ocm.software/ocmcli: 0.1.0-alpha.2, 0.1.0-dev, 0.3.0-dev, 0.3.0-rc.2, 0.3.0-rc.3, 0.3.0, 0.4.0-dev, 0.4.0, 0.4.1, 0.4.2, 0.4.3, 0.5.0, 0.6.0, 0.7.0, 0.8.0, 0.9.0, 0.10.0, 0.11.0, 0.12.0, 0.12.1, 0.13.0, 0.14.0, 0.15.0, 0.16.0, 0.16.1, 0.16.2, 0.17.0-rc.1, 0.17.0, 0.18.0-rc.1, 0.18.0-rc.2, 0.18.0
looking up resources of the latest version:
version: 0.17.0
provider: ocm.software
Expand Down

0 comments on commit 3133edf

Please sign in to comment.